| Index: src/runtime/runtime-object.cc
|
| diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
|
| index e4478b7b44cd293d124510d3291eeefea6731fd9..79117794545b50cbbbee0495e5fd694d3b328a76 100644
|
| --- a/src/runtime/runtime-object.cc
|
| +++ b/src/runtime/runtime-object.cc
|
| @@ -1566,5 +1566,13 @@ RUNTIME_FUNCTION(Runtime_DefineSetterPropertyUnchecked) {
|
| setter, attrs));
|
| return isolate->heap()->undefined_value();
|
| }
|
| +
|
| +
|
| +RUNTIME_FUNCTION(Runtime_ThrowNonCoercible) {
|
| + HandleScope scope(isolate);
|
| + DCHECK(args.length() == 0);
|
| + THROW_NEW_ERROR_RETURN_FAILURE(isolate,
|
| + NewTypeError(MessageTemplate::kNonCoercible));
|
| +}
|
| }
|
| } // namespace v8::internal
|
|
|