Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 416034f09da789e3b42911ecfa153a9f96129475..48be379ab82e81ca6bd27130776b23733b91904f 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -2778,8 +2778,8 @@ MaybeLocal<String> JSON::Stringify(Local<Context> context, |
? isolate->factory()->empty_string() |
: Utils::OpenHandle(*gap); |
i::Handle<i::Object> maybe; |
- has_pending_exception = !i::BasicJsonStringifier(isolate, gap_string) |
- .Stringify(object) |
+ has_pending_exception = !i::BasicJsonStringifier(isolate) |
+ .Stringify(object, gap_string) |
.ToHandle(&maybe); |
RETURN_ON_FAILED_EXECUTION(String); |
Local<String> result; |