-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing plan for JSON-parse-with-source #4096
Comments
I hope I didn't miss important test cases, and that the plan is not too much or too little. Any comments are very welcome! I make the start by migrating the staging tests by the v8 project authors. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Proposal README
Proposal rendered spec
For testing the tests, the proposal is shipped in v8.
JSON.isRawJSON
:JSON.rawJSON
.[[IsRawJSON]]
internal slot:{}
,[]
.null
,undefinded
, a Boolean, a symbol, a number.JSON.rawJSON
:true
,false
,null
SyntaxError
in case of:{}
.[1]
.TypeError
when trying to extend a rawJSON result object.JSON.parse
, each test should have a callablereviver
argument:CreateJSONParseRecord
, only success cases (normal output), a test for each branch:InternalizeJSONProperty
, and the interaction withJSON.stringify
, test with areviver
that modifies the holder object, as mentioned in tc39 issue 39:JSON.parse(" 9999999999999999", (key, val) => BigInt(val)) // → 9999999999999999n
The text was updated successfully, but these errors were encountered: