| Index: src/json-parser.h
|
| diff --git a/src/json-parser.h b/src/json-parser.h
|
| index c23e50dbb4dbd0eefbfc955f54eaed03e9b34511..82ab9c57622c9ed7b20151b4eb27962437dfdade 100644
|
| --- a/src/json-parser.h
|
| +++ b/src/json-parser.h
|
| @@ -244,7 +244,9 @@ MaybeHandle<Object> JsonParser<seq_ascii>::ParseJson() {
|
| MessageLocation location(factory->NewScript(source_),
|
| position_,
|
| position_ + 1);
|
| - Handle<Object> error = factory->NewSyntaxError(message, array);
|
| + Handle<Object> error;
|
| + ASSIGN_RETURN_ON_EXCEPTION(isolate(), error,
|
| + factory->NewSyntaxError(message, array), Object);
|
| return isolate()->template Throw<Object>(error, &location);
|
| }
|
| return result;
|
|
|