diff options
author | Amjad Ben Hedhili <amjadhedhili@outlook.com> | 2023-09-23 15:10:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-23 16:10:17 +0200 |
commit | eadd0d72cffd0d8470f42b873abda251e2e5eded (patch) | |
tree | 512f84084d1ee982ae7d98974824afa8086806cf /lib/std/envvars.nim | |
parent | b10a809274494d46db2b6bf6930c8c50a2751c9b (diff) | |
download | Nim-eadd0d72cffd0d8470f42b873abda251e2e5eded.tar.gz |
Initialize `newString` in js [backport:1.6] (#22745)
```nim echo newString(8) ``` results in: ``` D:\User\test.js:25 var code_33556944 = c_33556931.toString(16); ^ TypeError: Cannot read properties of undefined (reading 'toString') at toJSStr (D:\User\test.js:25:50) at rawEcho (D:\User\test.js:70:16) at Object.<anonymous> (D:\User\test.js:101:1) at Module._compile (node:internal/modules/cjs/loader:1095:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1147:10) at Module.load (node:internal/modules/cjs/loader:975:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 Node.js v17.0.1 Error: execution of an external program failed: '"C:\Program Files\nodejs\node.exe" --unhandled-rejections=strict D:\User\test.js' ```
Diffstat (limited to 'lib/std/envvars.nim')
0 files changed, 0 insertions, 0 deletions