Skip to content

Feature/nxt 6918#163

Open
dan-ichim-lgp wants to merge 5 commits into
developfrom
feature/NXT-6918
Open

Feature/nxt 6918#163
dan-ichim-lgp wants to merge 5 commits into
developfrom
feature/NXT-6918

Conversation

@dan-ichim-lgp

Copy link
Copy Markdown

Checklist

  • I have read and understand the contribution guide
  • A CHANGELOG entry is included
  • At least one test case is included for this feature or bug fix
  • Documentation was added or is not needed
  • This is an API breaking change

Issue Resolved / Feature Added

Resolution

Additional Considerations

Links

Comments

@dan-ichim-lgp dan-ichim-lgp self-assigned this Jul 14, 2026
code = code.replace(/typeof\s+window\s*<\s*["']u["']/g, 'false');
code = code.replace(/typeof\s+document\s*<\s*["']u["']/g, 'false');

code = code.replace(/(?<![.$\w])window(?![.\w])/g, 'undefined');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

regex-replacing bare window/document over raw bundle text corrupts string literals ("window" → "undefined"); I prefer a vm context without those globals

@daniel-stoian-lgp

Copy link
Copy Markdown
Contributor

please also check Github Workflow errors

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