Fix SealHandleScope usage in runtime calls
R=adamk@chromium.org BUG=v8:5783 Review-Url: https://codereview.chromium.org/2608433002 Cr-Commit-Position: refs/heads/master@{#41964}
This commit is contained in:
parent
24547376a9
commit
9c9f1870df
@ -281,7 +281,7 @@ RUNTIME_FUNCTION(Runtime_PromiseRejectReactions) {
|
||||
RUNTIME_FUNCTION(Runtime_PromiseMarkAsHandled) {
|
||||
SealHandleScope shs(isolate);
|
||||
DCHECK(args.length() == 1);
|
||||
CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0);
|
||||
CONVERT_ARG_CHECKED(JSPromise, promise, 0);
|
||||
|
||||
promise->set_has_handler(true);
|
||||
return isolate->heap()->undefined_value();
|
||||
@ -290,7 +290,7 @@ RUNTIME_FUNCTION(Runtime_PromiseMarkAsHandled) {
|
||||
RUNTIME_FUNCTION(Runtime_PromiseMarkHandledHint) {
|
||||
SealHandleScope shs(isolate);
|
||||
DCHECK(args.length() == 1);
|
||||
CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0);
|
||||
CONVERT_ARG_CHECKED(JSPromise, promise, 0);
|
||||
|
||||
promise->set_handled_hint(true);
|
||||
return isolate->heap()->undefined_value();
|
||||
|
Loading…
Reference in New Issue
Block a user