[Webkit-unassigned] [Bug 190343] JSON3 functionality doesn’t work in WebKit for json stringify
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 11 11:45:51 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=190343
--- Comment #5 from RVSP <rvspeswar at gmail.com> ---
For this I have fixed as below mentioned
// ECMA-262 v5 15.12.3
EncodedJSValue JSC_HOST_CALL JSONProtoFuncStringify(ExecState* exec)
{
if (!exec->argumentCount())
return throwVMError(exec, createError(exec, ASCIILiteral("No input to stringify")));
LocalScope scope(exec->globalData());
Local<Unknown> value(exec->globalData(), exec->argument(0));
Local<Unknown> replacer(exec->globalData(), exec->argument(1));
Local<Unknown> space(exec->globalData(), exec->argument(2));
return JSValue::encode(Stringifier(exec, replacer, space).stringify(value).get());
}
Modified:
========
// ECMA-262 v5 15.12.3
EncodedJSValue JSC_HOST_CALL JSONProtoFuncStringify(ExecState* exec)
{
if (!exec->argumentCount()){
LocalScope scope(exec->globalData());
Local<Unknown> value(exec->globalData(), jsnull());
Local<Unknown> replacer(exec->globalData(), jsnull());
Local<Unknown> space(exec->globalData(), jsnull());
return JSValue::encode(Stringifier(exec, replacer, space).stringify(value).get()
}
LocalScope scope(exec->globalData());
Local<Unknown> value(exec->globalData(), exec->argument(0));
Local<Unknown> replacer(exec->globalData(), exec->argument(1));
Local<Unknown> space(exec->globalData(), exec->argument(2));
return JSValue::encode(Stringifier(exec, replacer, space).stringify(value).get());
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181011/f26ab0b8/attachment.html>
More information about the webkit-unassigned
mailing list