Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 1b5d428a3c74d657a90f3c6a072e1e5e0cd2ea77..62e50dd449334960cdf42d6f0bfa72a4182d0921 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -4254,10 +4254,8 @@ MaybeLocal<Value> Object::CallAsFunction(Local<Context> context, |
recv_obj = self; |
} |
Local<Value> result; |
- has_pending_exception = |
- !ToLocal<Value>( |
- i::Execution::Call(isolate, fun, recv_obj, argc, args, true), |
- &result); |
+ has_pending_exception = !ToLocal<Value>( |
+ i::Execution::Call(isolate, fun, recv_obj, argc, args), &result); |
RETURN_ON_FAILED_EXECUTION(Value); |
RETURN_ESCAPED(result); |
} |
@@ -4365,10 +4363,8 @@ MaybeLocal<v8::Value> Function::Call(Local<Context> context, |
STATIC_ASSERT(sizeof(v8::Local<v8::Value>) == sizeof(i::Object**)); |
i::Handle<i::Object>* args = reinterpret_cast<i::Handle<i::Object>*>(argv); |
Local<Value> result; |
- has_pending_exception = |
- !ToLocal<Value>( |
- i::Execution::Call(isolate, self, recv_obj, argc, args, true), |
- &result); |
+ has_pending_exception = !ToLocal<Value>( |
+ i::Execution::Call(isolate, self, recv_obj, argc, args), &result); |
RETURN_ON_FAILED_EXECUTION(Value); |
RETURN_ESCAPED(result); |
} |
@@ -6141,7 +6137,7 @@ MaybeLocal<Value> Map::Get(Local<Context> context, Local<Value> key) { |
i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)}; |
has_pending_exception = |
!ToLocal<Value>(i::Execution::Call(isolate, isolate->map_get(), self, |
- arraysize(argv), argv, false), |
+ arraysize(argv), argv), |
&result); |
RETURN_ON_FAILED_EXECUTION(Value); |
RETURN_ESCAPED(result); |
@@ -6155,9 +6151,9 @@ MaybeLocal<Map> Map::Set(Local<Context> context, Local<Value> key, |
i::Handle<i::Object> result; |
i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key), |
Utils::OpenHandle(*value)}; |
- has_pending_exception = |
- !i::Execution::Call(isolate, isolate->map_set(), self, arraysize(argv), |
- argv, false).ToHandle(&result); |
+ has_pending_exception = !i::Execution::Call(isolate, isolate->map_set(), self, |
+ arraysize(argv), argv) |
+ .ToHandle(&result); |
RETURN_ON_FAILED_EXECUTION(Map); |
RETURN_ESCAPED(Local<Map>::Cast(Utils::ToLocal(result))); |
} |
@@ -6168,9 +6164,9 @@ Maybe<bool> Map::Has(Local<Context> context, Local<Value> key) { |
auto self = Utils::OpenHandle(this); |
i::Handle<i::Object> result; |
i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)}; |
- has_pending_exception = |
- !i::Execution::Call(isolate, isolate->map_has(), self, arraysize(argv), |
- argv, false).ToHandle(&result); |
+ has_pending_exception = !i::Execution::Call(isolate, isolate->map_has(), self, |
+ arraysize(argv), argv) |
+ .ToHandle(&result); |
RETURN_ON_FAILED_EXECUTION_PRIMITIVE(bool); |
return Just(result->IsTrue()); |
} |
@@ -6181,9 +6177,9 @@ Maybe<bool> Map::Delete(Local<Context> context, Local<Value> key) { |
auto self = Utils::OpenHandle(this); |
i::Handle<i::Object> result; |
i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)}; |
- has_pending_exception = |
- !i::Execution::Call(isolate, isolate->map_delete(), self, arraysize(argv), |
- argv, false).ToHandle(&result); |
+ has_pending_exception = !i::Execution::Call(isolate, isolate->map_delete(), |
+ self, arraysize(argv), argv) |
+ .ToHandle(&result); |
RETURN_ON_FAILED_EXECUTION_PRIMITIVE(bool); |
return Just(result->IsTrue()); |
} |
@@ -6220,7 +6216,8 @@ MaybeLocal<Map> Map::FromArray(Local<Context> context, Local<Array> array) { |
has_pending_exception = |
!i::Execution::Call(isolate, isolate->map_from_array(), |
isolate->factory()->undefined_value(), |
- arraysize(argv), argv, false).ToHandle(&result); |
+ arraysize(argv), argv) |
+ .ToHandle(&result); |
RETURN_ON_FAILED_EXECUTION(Map); |
RETURN_ESCAPED(Local<Map>::Cast(Utils::ToLocal(result))); |
} |
@@ -6255,9 +6252,9 @@ MaybeLocal<Set> Set::Add(Local<Context> context, Local<Value> key) { |
auto self = Utils::OpenHandle(this); |
i::Handle<i::Object> result; |
i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)}; |
- has_pending_exception = |
- !i::Execution::Call(isolate, isolate->set_add(), self, arraysize(argv), |
- argv, false).ToHandle(&result); |
+ has_pending_exception = !i::Execution::Call(isolate, isolate->set_add(), self, |
+ arraysize(argv), argv) |
+ .ToHandle(&result); |
RETURN_ON_FAILED_EXECUTION(Set); |
RETURN_ESCAPED(Local<Set>::Cast(Utils::ToLocal(result))); |
} |
@@ -6268,9 +6265,9 @@ Maybe<bool> Set::Has(Local<Context> context, Local<Value> key) { |
auto self = Utils::OpenHandle(this); |
i::Handle<i::Object> result; |
i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)}; |
- has_pending_exception = |
- !i::Execution::Call(isolate, isolate->set_has(), self, arraysize(argv), |
- argv, false).ToHandle(&result); |
+ has_pending_exception = !i::Execution::Call(isolate, isolate->set_has(), self, |
+ arraysize(argv), argv) |
+ .ToHandle(&result); |
RETURN_ON_FAILED_EXECUTION_PRIMITIVE(bool); |
return Just(result->IsTrue()); |
} |
@@ -6281,9 +6278,9 @@ Maybe<bool> Set::Delete(Local<Context> context, Local<Value> key) { |
auto self = Utils::OpenHandle(this); |
i::Handle<i::Object> result; |
i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)}; |
- has_pending_exception = |
- !i::Execution::Call(isolate, isolate->set_delete(), self, arraysize(argv), |
- argv, false).ToHandle(&result); |
+ has_pending_exception = !i::Execution::Call(isolate, isolate->set_delete(), |
+ self, arraysize(argv), argv) |
+ .ToHandle(&result); |
RETURN_ON_FAILED_EXECUTION_PRIMITIVE(bool); |
return Just(result->IsTrue()); |
} |
@@ -6317,7 +6314,8 @@ MaybeLocal<Set> Set::FromArray(Local<Context> context, Local<Array> array) { |
has_pending_exception = |
!i::Execution::Call(isolate, isolate->set_from_array(), |
isolate->factory()->undefined_value(), |
- arraysize(argv), argv, false).ToHandle(&result); |
+ arraysize(argv), argv) |
+ .ToHandle(&result); |
RETURN_ON_FAILED_EXECUTION(Set); |
RETURN_ESCAPED(Local<Set>::Cast(Utils::ToLocal(result))); |
} |
@@ -6332,12 +6330,10 @@ bool Value::IsPromise() const { |
MaybeLocal<Promise::Resolver> Promise::Resolver::New(Local<Context> context) { |
PREPARE_FOR_EXECUTION(context, "Promise::Resolver::New", Resolver); |
i::Handle<i::Object> result; |
- has_pending_exception = !i::Execution::Call( |
- isolate, |
- isolate->promise_create(), |
- isolate->factory()->undefined_value(), |
- 0, NULL, |
- false).ToHandle(&result); |
+ has_pending_exception = |
+ !i::Execution::Call(isolate, isolate->promise_create(), |
+ isolate->factory()->undefined_value(), 0, NULL) |
+ .ToHandle(&result); |
RETURN_ON_FAILED_EXECUTION(Promise::Resolver); |
RETURN_ESCAPED(Local<Promise::Resolver>::Cast(Utils::ToLocal(result))); |
} |
@@ -6360,12 +6356,11 @@ Maybe<bool> Promise::Resolver::Resolve(Local<Context> context, |
PREPARE_FOR_EXECUTION_PRIMITIVE(context, "Promise::Resolver::Resolve", bool); |
auto self = Utils::OpenHandle(this); |
i::Handle<i::Object> argv[] = {self, Utils::OpenHandle(*value)}; |
- has_pending_exception = i::Execution::Call( |
- isolate, |
- isolate->promise_resolve(), |
- isolate->factory()->undefined_value(), |
- arraysize(argv), argv, |
- false).is_null(); |
+ has_pending_exception = |
+ i::Execution::Call(isolate, isolate->promise_resolve(), |
+ isolate->factory()->undefined_value(), arraysize(argv), |
+ argv) |
+ .is_null(); |
RETURN_ON_FAILED_EXECUTION_PRIMITIVE(bool); |
return Just(true); |
} |
@@ -6382,12 +6377,11 @@ Maybe<bool> Promise::Resolver::Reject(Local<Context> context, |
PREPARE_FOR_EXECUTION_PRIMITIVE(context, "Promise::Resolver::Resolve", bool); |
auto self = Utils::OpenHandle(this); |
i::Handle<i::Object> argv[] = {self, Utils::OpenHandle(*value)}; |
- has_pending_exception = i::Execution::Call( |
- isolate, |
- isolate->promise_reject(), |
- isolate->factory()->undefined_value(), |
- arraysize(argv), argv, |
- false).is_null(); |
+ has_pending_exception = |
+ i::Execution::Call(isolate, isolate->promise_reject(), |
+ isolate->factory()->undefined_value(), arraysize(argv), |
+ argv) |
+ .is_null(); |
RETURN_ON_FAILED_EXECUTION_PRIMITIVE(bool); |
return Just(true); |
} |
@@ -6405,9 +6399,9 @@ MaybeLocal<Promise> Promise::Chain(Local<Context> context, |
auto self = Utils::OpenHandle(this); |
i::Handle<i::Object> argv[] = {Utils::OpenHandle(*handler)}; |
i::Handle<i::Object> result; |
- has_pending_exception = |
- !i::Execution::Call(isolate, isolate->promise_chain(), self, |
- arraysize(argv), argv, false).ToHandle(&result); |
+ has_pending_exception = !i::Execution::Call(isolate, isolate->promise_chain(), |
+ self, arraysize(argv), argv) |
+ .ToHandle(&result); |
RETURN_ON_FAILED_EXECUTION(Promise); |
RETURN_ESCAPED(Local<Promise>::Cast(Utils::ToLocal(result))); |
} |
@@ -6425,9 +6419,9 @@ MaybeLocal<Promise> Promise::Catch(Local<Context> context, |
auto self = Utils::OpenHandle(this); |
i::Handle<i::Object> argv[] = { Utils::OpenHandle(*handler) }; |
i::Handle<i::Object> result; |
- has_pending_exception = |
- !i::Execution::Call(isolate, isolate->promise_catch(), self, |
- arraysize(argv), argv, false).ToHandle(&result); |
+ has_pending_exception = !i::Execution::Call(isolate, isolate->promise_catch(), |
+ self, arraysize(argv), argv) |
+ .ToHandle(&result); |
RETURN_ON_FAILED_EXECUTION(Promise); |
RETURN_ESCAPED(Local<Promise>::Cast(Utils::ToLocal(result))); |
} |
@@ -6445,9 +6439,9 @@ MaybeLocal<Promise> Promise::Then(Local<Context> context, |
auto self = Utils::OpenHandle(this); |
i::Handle<i::Object> argv[] = { Utils::OpenHandle(*handler) }; |
i::Handle<i::Object> result; |
- has_pending_exception = |
- !i::Execution::Call(isolate, isolate->promise_then(), self, |
- arraysize(argv), argv, false).ToHandle(&result); |
+ has_pending_exception = !i::Execution::Call(isolate, isolate->promise_then(), |
+ self, arraysize(argv), argv) |
+ .ToHandle(&result); |
RETURN_ON_FAILED_EXECUTION(Promise); |
RETURN_ESCAPED(Local<Promise>::Cast(Utils::ToLocal(result))); |
} |