Skip to content

Comments

fix: reserve reserved-key in json module type.#1746

Merged
hyf0 merged 1 commit intorolldown:mainfrom
7086cmd:fix/json-reserved-key
Jul 26, 2024
Merged

fix: reserve reserved-key in json module type.#1746
hyf0 merged 1 commit intorolldown:mainfrom
7086cmd:fix/json-reserved-key

Conversation

@7086cmd
Copy link
Contributor

@7086cmd 7086cmd commented Jul 26, 2024

Rolldown seems to panic when parsing the following JSON before this PR:

{ "null": null }

I used functions in oxc::syntax::keyword to solve it.

Notice that is_reserved_keyword_or_global_object function is suffering wrong calling (related pr: oxc-project/oxc#4484), I'll separately call them in this PR.

@netlify
Copy link

netlify bot commented Jul 26, 2024

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit 1637eb0
🔍 Latest deploy log https://app.netlify.com/sites/rolldown-rs/deploys/66a3c1753e907e0007420517

@7086cmd 7086cmd changed the title fix: reserve json reserve key in json module type. fix: reserve reserved-key in json module type. Jul 26, 2024
@hyf0
Copy link
Member

hyf0 commented Jul 26, 2024

Thanks!

@hyf0 hyf0 added this pull request to the merge queue Jul 26, 2024
Merged via the queue into rolldown:main with commit 7243165 Jul 26, 2024
@7086cmd 7086cmd deleted the fix/json-reserved-key branch August 7, 2024 05:05
github-merge-queue bot pushed a commit that referenced this pull request Aug 7, 2024
`node:assert` is external by default.

_Originally posted by @IWANABETHATGUY in
#1746 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants