-
Notifications
You must be signed in to change notification settings - Fork 200
Improve string parsing and JSON parsing #316
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
Conversation
chqrlie
commented
Mar 15, 2024
- fix JSON parsing of non ASCII string contents
- fix html comment detection at start of source code
- more precise string parsing errors
- more precise JSON parsing errors
- ignore more v8 tests
- improve v8 Failure messages
- fix JSON parsing of non ASCII string contents - fix html comment detection at start of source code - more precise string parsing errors - more precise JSON parsing errors - ignore more v8 tests - improve v8 Failure messages
- fix side effects of `s->token.len = -1` initialization - use more reliable method for HTML comment detection - add `JS_ParseState::buf_start` to compute line/column
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, looks like I forgot to actually submit my review. It was still pending.
Mostly LGTM with some comments.
} else | ||
if ((c >= '0' && c <= '9') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll never get used to this style :-)
v8-tweak.js
Outdated
print(String(message).slice(0, 300)) | ||
} | ||
globalThis.formatFailureText = function(expectedText, found, name_opt) { | ||
var message = "Fail" + "ure"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No semis, please :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll never get used to this style :-)
- remove semicolons in v8.js - filter out omit-default-ctors-array-iterator.js