diff options
Diffstat (limited to 'deps/v8/src/builtins/builtins-json.cc')
-rw-r--r-- | deps/v8/src/builtins/builtins-json.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/deps/v8/src/builtins/builtins-json.cc b/deps/v8/src/builtins/builtins-json.cc index 3c317d5b88f..c3f6672b0f1 100644 --- a/deps/v8/src/builtins/builtins-json.cc +++ b/deps/v8/src/builtins/builtins-json.cc @@ -2,9 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "src/builtins/builtins-utils-inl.h" #include "src/builtins/builtins.h" -#include "src/builtins/builtins-utils.h" - #include "src/counters.h" #include "src/json-parser.h" #include "src/json-stringifier.h" @@ -31,12 +30,11 @@ BUILTIN(JsonParse) { // ES6 section 24.3.2 JSON.stringify. BUILTIN(JsonStringify) { HandleScope scope(isolate); - JsonStringifier stringifier(isolate); Handle<Object> object = args.atOrUndefined(isolate, 1); Handle<Object> replacer = args.atOrUndefined(isolate, 2); Handle<Object> indent = args.atOrUndefined(isolate, 3); RETURN_RESULT_OR_FAILURE(isolate, - stringifier.Stringify(object, replacer, indent)); + JsonStringify(isolate, object, replacer, indent)); } } // namespace internal |