Contact emails...@chromium.org

Explainer
https://github.com/tc39/proposal-json-parse-with-source/blob/master/README.md

Specificationhttps://tc39.es/proposal-json-parse-with-source

Summary

This proposal adds an object with a "source" property that is passed as the
3rd argument to the reviver function in JSON.parse. This property contains
the raw source text for the value being parsed. It is designed to address
the issue that JSON parsing is lossy, e.g. around BigInt values. For
example, `JSON.parse(" 9999999999999999", (key, val, {source}) =>
BigInt(source))`.


Blink componentBlink>JavaScript>Language
<https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EJavaScript%3ELanguage>

TAG review

TAG review statusNot applicable

Risks


Interoperability and Compatibility



*Gecko*: Positive This is a Stage 3 TC39 proposal.

*WebKit*: Positive This is a Stage 3 TC39 proposal.

*Web developers*: No signals

*Other signals*:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that
it has potentially high risk for Android WebView-based applications?



Debuggability

The 3rd argument being added will be debugged as any JavaScript function
argument.


Will this feature be supported on all six Blink platforms (Windows, Mac,
Linux, Chrome OS, Android, and Android WebView)?Yes

Is this feature fully tested by web-platform-tests
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>
?In test262: https://github.com/tc39/test262/pull/3806

Flag name--harmony-json-parse-with-source

Requires code in //chrome?False

Tracking bughttps://bugs.chromium.org/p/v8/issues/detail?id=12955

Estimated milestones
Shipping on desktop 114
DevTrial on desktop 108
DevTrial on Android 108

Anticipated spec changes

None


Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5121582673428480

This intent message was generated by Chrome Platform Status
<https://chromestatus.com/>.

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAN-e9e_i9snn_eZQ_eZgL-_%3DzTvBQZ1E4h_kxhVfKVSL892gCQ%40mail.gmail.com.

Reply via email to