| Index: src/json-stringifier.h
|
| diff --git a/src/json-stringifier.h b/src/json-stringifier.h
|
| index efb71e5fb11d59f74fdfa3f2f31e94974670497b..9579c78ff0774f4c18ae8e3ca79b427b939ba57a 100644
|
| --- a/src/json-stringifier.h
|
| +++ b/src/json-stringifier.h
|
| @@ -8,6 +8,7 @@
|
| #include "src/v8.h"
|
|
|
| #include "src/conversions.h"
|
| +#include "src/messages.h"
|
| #include "src/string-builder.h"
|
| #include "src/utils.h"
|
|
|
| @@ -272,8 +273,8 @@ BasicJsonStringifier::Result BasicJsonStringifier::StackPush(
|
| for (int i = 0; i < length; i++) {
|
| if (elements->get(i) == *object) {
|
| AllowHeapAllocation allow_to_return_error;
|
| - Handle<Object> error = factory()->NewTypeError(
|
| - "circular_structure", HandleVector<Object>(NULL, 0));
|
| + Handle<Object> error =
|
| + factory()->NewTypeError(MessageTemplate::kCircularStructure);
|
| isolate_->Throw(*error);
|
| return EXCEPTION;
|
| }
|
|
|