| Index: src/runtime/runtime-object.cc
|
| diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
|
| index 332ccb0e990e583d30219bd2d4c698b6379ce2d7..60d054d3e4f5fb438db1d5883cd76dc7f18fc04f 100644
|
| --- a/src/runtime/runtime-object.cc
|
| +++ b/src/runtime/runtime-object.cc
|
| @@ -270,7 +270,7 @@ RUNTIME_FUNCTION(Runtime_OptimizeObjectForAddingMultipleProperties) {
|
| CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
|
| CONVERT_SMI_ARG_CHECKED(properties, 1);
|
| // Conservative upper limit to prevent fuzz tests from going OOM.
|
| - RUNTIME_ASSERT(properties <= 100000);
|
| + if (properties > 100000) return isolate->ThrowIllegalOperation();
|
| if (object->HasFastProperties() && !object->IsJSGlobalProxy()) {
|
| JSObject::NormalizeProperties(object, KEEP_INOBJECT_PROPERTIES, properties,
|
| "OptimizeForAdding");
|
|
|