Skip to content

Fix: findPossibleIndexes: RegExp.escape() the symbols#14

Open
domq wants to merge 1 commit into
meteor:mainfrom
domq:fix/export-dollar
Open

Fix: findPossibleIndexes: RegExp.escape() the symbols#14
domq wants to merge 1 commit into
meteor:mainfrom
domq:fix/export-dollar

Conversation

@domq

@domq domq commented Feb 6, 2026

Copy link
Copy Markdown

Fixes #13

This prevents an infinite loop for e.g. modules that export a variable named $.

@CLAassistant

CLAassistant commented Feb 6, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

domq added a commit to epfl-si/ATARI that referenced this pull request Feb 6, 2026
This prevents a Meteor compiler crash when processing a module that exports a symbol named `$`.

See: meteor/reify#14
@domq

domq commented Feb 6, 2026

Copy link
Copy Markdown
Author

Meh — RegExp.escape doesn't exist in Node v22.22.0 😐 I'll come again.

Fixes meteor#13

This prevents an infinite loop for e.g. modules that export a variable named `$`.

In Node 24.x we could use `RegExp.escape()`, but that doesn't exist in
Node 22.x which Meteor 3.4.0 uses. Provide a polyfill
@domq
domq force-pushed the fix/export-dollar branch from 2298902 to b6e3ca3 Compare February 6, 2026 15:30
@domq

domq commented Feb 6, 2026

Copy link
Copy Markdown
Author

I unfortunately can't seem to change the PR title now 😐😐

domq added a commit to epfl-si/ATARI that referenced this pull request Feb 11, 2026
This prevents a Meteor compiler crash when processing a module that exports a symbol named `$`.

See: meteor/reify#14
@domq

domq commented Mar 30, 2026

Copy link
Copy Markdown
Author

Can you please review this PR? Many thanks in advance!

@italojs italojs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

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.

Chokes on code that exports $

3 participants