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))`.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
The 3rd argument being added will be debugged as any JavaScript function argument.
Shipping on desktop | 114 |
DevTrial on desktop | 108 |
DevTrial on Android | 108 |
None
--
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+...@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.
LGTM2
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfX0r0q3vK%2ByUAHNCzeK56jd62bAsC9_TBETw%3DVkWZ27-Q%40mail.gmail.com.
LGTM3
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/0d468dd2-336e-52cb-5cdd-85b29f53b407%40chromium.org.