[Error] Add DontAdaptArguments to error functions
Bug: chromium:1220810 Change-Id: Ibb016b42c8acf91b2ad38b7d360dfaf1dc185cdf Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2972723 Reviewed-by: Toon Verwaest <verwaest@chromium.org> Commit-Queue: Victor Gomes <victorgomes@chromium.org> Cr-Commit-Position: refs/heads/master@{#75239}
This commit is contained in:
parent
c77ca6b3ac
commit
e77d9d843a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user