diff options
Diffstat (limited to 'deps/v8/test/cctest/compiler/test-run-jscalls.cc')
-rw-r--r-- | deps/v8/test/cctest/compiler/test-run-jscalls.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/v8/test/cctest/compiler/test-run-jscalls.cc b/deps/v8/test/cctest/compiler/test-run-jscalls.cc index a622af8995..8de2d7a214 100644 --- a/deps/v8/test/cctest/compiler/test-run-jscalls.cc +++ b/deps/v8/test/cctest/compiler/test-run-jscalls.cc @@ -242,6 +242,7 @@ TEST(ContextLoadedFromActivation) { i::Handle<i::Object> ofun = v8::Utils::OpenHandle(*value); i::Handle<i::JSFunction> jsfun = Handle<JSFunction>::cast(ofun); jsfun->set_code(T.function->code()); + jsfun->set_shared(T.function->shared()); context->Global()->Set(v8_str("foo"), v8::Utils::ToLocal(jsfun)); CompileRun("var x = 24;"); ExpectInt32("foo();", 24); @@ -263,6 +264,7 @@ TEST(BuiltinLoadedFromActivation) { i::Handle<i::Object> ofun = v8::Utils::OpenHandle(*value); i::Handle<i::JSFunction> jsfun = Handle<JSFunction>::cast(ofun); jsfun->set_code(T.function->code()); + jsfun->set_shared(T.function->shared()); context->Global()->Set(v8_str("foo"), v8::Utils::ToLocal(jsfun)); CompileRun("var x = 24;"); ExpectObject("foo()", context->Global()); |