Commit e77d9d84 authored by Victor Gomes's avatar Victor Gomes Committed by V8 LUCI CQ

[Error] Add DontAdaptArguments to error functions

Bug: chromium:1220810
Change-Id: Ibb016b42c8acf91b2ad38b7d360dfaf1dc185cdf
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2972723Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#75239}
parent c77ca6b3
......@@ -1419,6 +1419,7 @@ static void InstallError(Isolate* isolate, Handle<JSObject> global,
Handle<JSFunction> error_fun = InstallFunction(
isolate, global, name, JS_ERROR_TYPE, kErrorObjectSize,
in_object_properties, factory->the_hole_value(), error_constructor);
error_fun->shared().DontAdaptArguments();
error_fun->shared().set_length(error_function_length);
if (context_index == Context::ERROR_FUNCTION_INDEX) {
......
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