| Index: src/builtins.cc
|
| diff --git a/src/builtins.cc b/src/builtins.cc
|
| index 5b076d13127f5c633b658b7136217eaa0af682c7..4f3c4596b66cf7944c9138bd7d54f556eb97189b 100644
|
| --- a/src/builtins.cc
|
| +++ b/src/builtins.cc
|
| @@ -234,6 +234,12 @@ static inline MaybeHandle<FixedArrayBase> EnsureJSArrayWithWritableFastElements(
|
| return MaybeHandle<FixedArrayBase>();
|
| }
|
|
|
| + // Adding elements to the array prototype would break code that makes sure
|
| + // it has no elements. Handle that elsewhere.
|
| + if (array->GetIsolate()->is_initial_array_prototype(*array)) {
|
| + return MaybeHandle<FixedArrayBase>();
|
| + }
|
| +
|
| // Need to ensure that the arguments passed in args can be contained in
|
| // the array.
|
| int args_length = args->length();
|
|
|