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

18 lines
587 B
Markdown

# WRNexusJS 0.6.0 R11 peer-function regression test fix
The final failing compiler test used an over-escaped regular expression:
```ts
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:
```ts
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.