diff options
author | Ryan <ry@tinyclouds.org> | 2009-08-13 15:06:34 +0200 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-08-13 15:06:34 +0200 |
commit | 9dc621f83a6ea79e95b7b9780df164df0b28bac7 (patch) | |
tree | 1c6f3984833bca70bf7d7bad9460c744bed16051 /deps/v8/src/runtime.cc | |
parent | dd5ae3183b090755feb8fa67c65de25197f3e8e0 (diff) | |
download | node-9dc621f83a6ea79e95b7b9780df164df0b28bac7.tar.gz |
Upgrade v8 to 1.3.4
Diffstat (limited to 'deps/v8/src/runtime.cc')
-rw-r--r-- | deps/v8/src/runtime.cc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/deps/v8/src/runtime.cc b/deps/v8/src/runtime.cc index 56e9f85eb..0da4be821 100644 --- a/deps/v8/src/runtime.cc +++ b/deps/v8/src/runtime.cc @@ -4973,10 +4973,12 @@ static Object* Runtime_CompileString(Arguments args) { // Compile source string in the global context. Handle<Context> context(Top::context()->global_context()); + Compiler::ValidationState validate = (is_json->IsTrue()) + ? Compiler::VALIDATE_JSON : Compiler::DONT_VALIDATE_JSON; Handle<JSFunction> boilerplate = Compiler::CompileEval(source, context, true, - is_json->IsTrue()); + validate); if (boilerplate.is_null()) return Failure::Exception(); Handle<JSFunction> fun = Factory::NewFunctionFromBoilerplate(boilerplate, context); @@ -5000,8 +5002,11 @@ static Object* CompileDirectEval(Handle<String> source) { bool is_global = context->IsGlobalContext(); // Compile source string in the current context. - Handle<JSFunction> boilerplate = - Compiler::CompileEval(source, context, is_global, false); + Handle<JSFunction> boilerplate = Compiler::CompileEval( + source, + context, + is_global, + Compiler::DONT_VALIDATE_JSON); if (boilerplate.is_null()) return Failure::Exception(); Handle<JSFunction> fun = Factory::NewFunctionFromBoilerplate(boilerplate, context); @@ -7043,7 +7048,7 @@ static Object* Runtime_DebugEvaluate(Arguments args) { Compiler::CompileEval(function_source, context, context->IsGlobalContext(), - false); + Compiler::DONT_VALIDATE_JSON); if (boilerplate.is_null()) return Failure::Exception(); Handle<JSFunction> compiled_function = Factory::NewFunctionFromBoilerplate(boilerplate, context); @@ -7111,7 +7116,7 @@ static Object* Runtime_DebugEvaluateGlobal(Arguments args) { Handle<JSFunction>(Compiler::CompileEval(source, context, true, - false)); + Compiler::DONT_VALIDATE_JSON)); if (boilerplate.is_null()) return Failure::Exception(); Handle<JSFunction> compiled_function = Handle<JSFunction>(Factory::NewFunctionFromBoilerplate(boilerplate, |