From c2a06725d6ebc0b23bfb20a8ce478b1ebf042c4e Mon Sep 17 00:00:00 2001 From: Herbert Vojcik Date: Sat, 17 Apr 2010 17:18:15 +0200 Subject: [PATCH] Script class with eval-function-family in binding('evals') plus tests. --- src/node.cc | 18 +- src/node.js | 1 + src/node_script.cc | 237 +++++++++++++++++++++++++ src/node_script.h | 38 ++++ test/simple/test-script-new.js | 53 ++++++ test/simple/test-script-static-new.js | 39 ++++ test/simple/test-script-static-this.js | 33 ++++ test/simple/test-script-this.js | 38 ++++ wscript | 1 + 9 files changed, 454 insertions(+), 4 deletions(-) create mode 100644 src/node_script.cc create mode 100644 src/node_script.h create mode 100644 test/simple/test-script-new.js create mode 100644 test/simple/test-script-static-new.js create mode 100644 test/simple/test-script-static-this.js create mode 100644 test/simple/test-script-this.js diff --git a/src/node.cc b/src/node.cc index f312b2d9a7..6f93a02daf 100644 --- a/src/node.cc +++ b/src/node.cc @@ -38,6 +38,7 @@ #ifdef HAVE_OPENSSL #include #endif +#include #include @@ -520,7 +521,7 @@ Local ExecuteString(Local source, Local filename) { HandleScope scope; TryCatch try_catch; - Local