diff options
Diffstat (limited to 'deps/v8/src/builtins')
-rw-r--r-- | deps/v8/src/builtins/builtins-error.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deps/v8/src/builtins/builtins-error.cc b/deps/v8/src/builtins/builtins-error.cc index 01e016252c..14c06022a9 100644 --- a/deps/v8/src/builtins/builtins-error.cc +++ b/deps/v8/src/builtins/builtins-error.cc @@ -35,6 +35,9 @@ BUILTIN(ErrorCaptureStackTrace) { THROW_NEW_ERROR_RETURN_FAILURE( isolate, NewTypeError(MessageTemplate::kInvalidArgument, object_obj)); } + if (object_obj->IsJSGlobalProxy()) { + return ReadOnlyRoots(isolate).undefined_value(); + } Handle<JSObject> object = Handle<JSObject>::cast(object_obj); Handle<Object> caller = args.atOrUndefined(isolate, 2); |