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

Unified Diff: src/factory.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
« no previous file with comments | « src/execution.cc ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index c66f90a65fbe2d7fc197e09e90fc20af2eec8b8a..83d7b4bf260141a6e7dd384e4642131b7caac353 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -1122,8 +1122,8 @@ Handle<Object> Factory::NewError(Handle<JSFunction> constructor,
// running the factory method, use the exception as the result.
Handle<Object> result;
MaybeHandle<Object> exception;
- if (!Execution::TryCall(fun, undefined_value(), arraysize(argv), argv,
- &exception)
+ if (!Execution::TryCall(isolate(), fun, undefined_value(), arraysize(argv),
+ argv, &exception)
.ToHandle(&result)) {
Handle<Object> exception_obj;
if (exception.ToHandle(&exception_obj)) {
@@ -1144,8 +1144,8 @@ Handle<Object> Factory::NewError(Handle<JSFunction> constructor,
// running the factory method, use the exception as the result.
Handle<Object> result;
MaybeHandle<Object> exception;
- if (!Execution::TryCall(constructor, undefined_value(), arraysize(argv), argv,
- &exception)
+ if (!Execution::TryCall(isolate(), constructor, undefined_value(),
+ arraysize(argv), argv, &exception)
.ToHandle(&result)) {
Handle<Object> exception_obj;
if (exception.ToHandle(&exception_obj)) return exception_obj;
« no previous file with comments | « src/execution.cc ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698