Skip to content

Fix class property refs for transformed builtins#286

Open
dicnunz wants to merge 1 commit into
gajus:masterfrom
dicnunz:issue-177-transform-runtime-builtins
Open

Fix class property refs for transformed builtins#286
dicnunz wants to merge 1 commit into
gajus:masterfrom
dicnunz:issue-177-transform-runtime-builtins

Conversation

@dicnunz
Copy link
Copy Markdown

@dicnunz dicnunz commented May 9, 2026

Fixes #177.\n\nIssueHunt bounty: https://oss.issuehunt.io/r/gajus/flow-runtime/issues/177\n\n## What changed\n- Emits class-property decorator refs for built-in runtime constructors (Date, Map, Promise, Set) as value references instead of string references.\n- This lets downstream Babel transforms such as transform-runtime rewrite Map/Set/etc. consistently with the class property initializer.\n- Adds a regression fixture for Map class properties.\n\n## Tested\n- TEST_FILTER=177-map-class-property-transform-runtime yarn --cwd packages/babel-plugin-flow-runtime test\n- yarn --cwd packages/babel-plugin-flow-runtime test\n- yarn --cwd packages/babel-plugin-flow-runtime lint (passes with existing missing jsx-a11y/alt-text warnings)\n- git diff --check


IssueHunt Summary

Referenced issues

This pull request has been submitted to:


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.

Map class property assertion fails when using babel-plugin-transform-runtime

1 participant