Files
WRNexusJS/FIXES-0.6.0-R11-PEER-TEST-REGEX.md
T
2026-08-01 01:09:58 +05:30

587 B

WRNexusJS 0.6.0 R11 peer-function regression test fix

The final failing compiler test used an over-escaped regular expression:

targets.browser.replace(/^export\\s+/gm, "");

That pattern matches a literal \\s sequence rather than whitespace, so generated export keywords remained in the source passed to new Function().

R11 corrects the test to:

targets.browser.replace(/^export\s+/gm, "");

The generated browser module itself was already correct. The corrected executable probe returns state.value === 1 after calling the peer-bound run() function.