Skip to content

fix: box string argument in compileSymbolLiteral before InvokeExternal#301

Merged
wrbl606 merged 1 commit into
masterfrom
fix/symbols
Apr 28, 2026
Merged

fix: box string argument in compileSymbolLiteral before InvokeExternal#301
wrbl606 merged 1 commit into
masterfrom
fix/symbols

Conversation

@wrbl606
Copy link
Copy Markdown
Collaborator

@wrbl606 wrbl606 commented Apr 28, 2026

Fixes symbol compilation by boxing the string argument before InvokeExternal.

compileSymbolLiteral was pushing a raw BuiltinValue string directly
as an argument, but InvokeExternal expects boxed $Value? arguments.
This caused a runtime type cast error ('String' is not a subtype of
'$Value?'). Added .boxIfNeeded(ctx) to wrap the string before
.pushArg(ctx).

Also adds symbol_test.dart covering simple, dotted, private, and
comparison symbol literal cases.
@wrbl606 wrbl606 merged commit 70a3cf7 into master Apr 28, 2026
1 check passed
@wrbl606 wrbl606 deleted the fix/symbols branch April 28, 2026 15:09
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