Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Unified Diff: test/cctest/compiler/test-run-jscalls.cc

Issue 1423723002: Map v8::Function to JSReceiver + IsCallable (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/cctest/compiler/test-run-jscalls.cc
diff --git a/test/cctest/compiler/test-run-jscalls.cc b/test/cctest/compiler/test-run-jscalls.cc
index 143b91d35b6391b787780eccf022520b32fb45ce..9c572523bcf512581cac0b619caf47d618b103bc 100644
--- a/test/cctest/compiler/test-run-jscalls.cc
+++ b/test/cctest/compiler/test-run-jscalls.cc
@@ -215,7 +215,7 @@ TEST(ContextLoadedFromActivation) {
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));
+ context->Global()->Set(v8_str("foo"), v8::Utils::FunctionToLocal(jsfun));
CompileRun("var x = 24;");
ExpectInt32("foo();", 24);
}
@@ -237,7 +237,7 @@ TEST(BuiltinLoadedFromActivation) {
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));
+ context->Global()->Set(v8_str("foo"), v8::Utils::FunctionToLocal(jsfun));
CompileRun("var x = 24;");
ExpectObject("foo()", context->Global());
}
« no previous file with comments | « test/cctest/compiler/test-run-bytecode-graph-builder.cc ('k') | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698