Repository navigation
Bun.Transpiler: add unstable_parse() to expose the internal AST #36745
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
Closed
Closed
Changes from 27 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
126d731
Bun.Transpiler: add unstable_parse() to expose the internal AST
robobun d75933f
reword \u escape comments to avoid diff-hygiene grep
robobun 08a16c6
[autofix.ci] apply automated fixes
autofix-ci[bot] af8c964
trim comments per comment-cop review
robobun 89d440b
trim remaining doc comments to two lines
robobun 3b6c16f
collapse remaining doc comments to single lines
robobun 13f5721
address review: rename property/import 'kind' to avoid node contract …
robobun bd44a0b
docs: list approximateNewlineCount among top-level unstable_parse fields
robobun db81afb
str(): match decode_wtf8_one on malformed UTF-8 (pass unclamped width…
robobun 607d4ee
ci: retrigger
robobun 395f009
unstable_parse: add {format:'raw'} mode (self-describing binary tape …
robobun 775695d
trim multi-line comments per comment-cop
robobun b71ab70
[autofix.ci] apply automated fixes
autofix-ci[bot] c35e75d
raw mode: address review (cache key, visitNode kind check, key_id ass…
robobun ba9434d
raw mode: guard u32 tape-offset overflow; tighten test assertions
robobun fea4250
drop accidentally-committed files; shorten overflow doc comment
robobun 7ee5175
raw mode: preserve lone surrogates via TY_STR16
robobun 7295d06
fix empty-string pool collision, UAF via options getter, and BOM stri…
robobun 175cb1d
drop unrelated files that keep getting re-staged
robobun affcc92
readString16: chunk String.fromCharCode.apply to avoid arg-count Rang…
robobun a3e72b6
str(): use WHATWG maximal-subpart on decode failure so FFFD count mat…
robobun 7a38bdb
shorten utf8_maximal_subpart doc comment per comment-cop
robobun 31daac7
str(): reject WTF-8-encoded surrogates to match TextDecoder
robobun 025a590
unstable_parse: drop object mode; always return {buffer, root, visit}
robobun d5c4725
shorten file doc comment per comment-cop
robobun 7aedaf6
[autofix.ci] apply automated fixes
autofix-ci[bot] 5016e70
node proxy: fall through to Reflect.get; f_f64: preserve -0 sign
robobun 35116cb
nodeHandler.has: fall through to Reflect.has to match get trap
robobun c0c10c4
drop unrelated README that leaked into the previous commit
robobun c8dead8
visit(): only dispatch enter on kind-bearing nodes
robobun 2a7122e
drop tamper-able instanceof ArrayBuffer guard
robobun 809cf60
ast_to_tape: clamp pre-sizing reserve hint to 16 MiB
robobun 221a162
unstable_parse: strongly-typed visitor keys and thorough JSDoc
robobun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.