Skip to content

Conversation

chqrlie
Copy link
Collaborator

@chqrlie 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

chqrlie added 3 commits March 15, 2024 19:29
- 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
@chqrlie chqrlie requested a review from bnoordhuis March 17, 2024 18:28
Copy link
Contributor

@bnoordhuis bnoordhuis left a 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.

Comment on lines +18705 to +18706
} else
if ((c >= '0' && c <= '9')
Copy link
Contributor

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";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No semis, please :)

Copy link
Collaborator Author

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
@chqrlie chqrlie merged commit 5e5b00c into quickjs-ng:master Mar 22, 2024
@chqrlie chqrlie deleted the string-parsing branch March 26, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants