[ShadowRealm] Pass value when throwing "not callable" TypeError
Bug: v8:11989 Change-Id: Idd7ab73f923a7a0114c0fb7a40807b4b163d6bcf Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3595106 Reviewed-by: Marja Hölttä <marja@chromium.org> Commit-Queue: Shu-yu Guo <syg@chromium.org> Auto-Submit: Shu-yu Guo <syg@chromium.org> Cr-Commit-Position: refs/heads/main@{#80321}
This commit is contained in:
parent
5e1f856d18
commit
7176808542
@ -75,7 +75,7 @@ MaybeHandle<Object> GetWrappedValue(Isolate* isolate,
|
||||
isolate,
|
||||
NewError(Handle<JSFunction>(creation_context->type_error_function(),
|
||||
isolate),
|
||||
MessageTemplate::kNotCallable),
|
||||
MessageTemplate::kNotCallable, value),
|
||||
{});
|
||||
}
|
||||
// 1b. Return ? WrappedFunctionCreate(callerRealm, value).
|
||||
|
Loading…
Reference in New Issue
Block a user