diff options
Diffstat (limited to 'V8Binding/v8/src/compiler.h')
-rw-r--r-- | V8Binding/v8/src/compiler.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/V8Binding/v8/src/compiler.h b/V8Binding/v8/src/compiler.h index 9f02a8d..579970b 100644 --- a/V8Binding/v8/src/compiler.h +++ b/V8Binding/v8/src/compiler.h @@ -48,6 +48,8 @@ namespace internal { class Compiler : public AllStatic { public: + enum ValidationState { VALIDATE_JSON, DONT_VALIDATE_JSON }; + // All routines return a JSFunction. // If an error occurs an exception is raised and // the return handle contains NULL. @@ -63,7 +65,7 @@ class Compiler : public AllStatic { static Handle<JSFunction> CompileEval(Handle<String> source, Handle<Context> context, bool is_global, - bool is_json); + ValidationState validation); // Compile from function info (used for lazy compilation). Returns // true on success and false if the compilation resulted in a stack |