Commit 71768085 authored by Shu-yu Guo's avatar Shu-yu Guo Committed by V8 LUCI CQ

[ShadowRealm] Pass value when throwing "not callable" TypeError

Bug: v8:11989
Change-Id: Idd7ab73f923a7a0114c0fb7a40807b4b163d6bcf
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3595106Reviewed-by: 's avatarMarja 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}
parent 5e1f856d
......@@ -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).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment