aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Hiroaki Nakamura <hnakamur@gmail.com> 2022-07-06 23:08:33 +0900
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-07-07 02:47:57 -0700
commit8e912b4a20e5b1abb9a031af16b00ef8381f2783 (patch)
tree13373d89ff2fa2405d51eb565defe6e4fcc9b850 /src
parent6c5472a84cc96cf9be60dfaeab9ad908bfdec79f (diff)
downloadbun-8e912b4a20e5b1abb9a031af16b00ef8381f2783.tar.gz
bun-8e912b4a20e5b1abb9a031af16b00ef8381f2783.tar.zst
bun-8e912b4a20e5b1abb9a031af16b00ef8381f2783.zip
Use Node.js v18.x from NodeSource to use string.replaceAll method
Node.js in Ubuntu focal does not have string.replaceAll method. ``` root@focal:~# node --version v10.19.0 root@focal:~# echo "console.log(''.replace)" | node [Function: replace] root@focal:~# echo "console.log(''.replaceAll)" | node undefined ``` And it gives the following error at https://github.com/Jarred-Sumner/bun/blob/f0c283c632816143d8eb3a9dc9ed41d326dcbde1/Makefile#L722 ``` /build/bun/misctools/headers-cleaner.js:33 input = input.replaceAll("*WebCore__", "*bindings."); ^ TypeError: input.replaceAll is not a function at Object.<anonymous> (/build/bun/misctools/headers-cleaner.js:33:15) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3) make: *** [Makefile:722: jsc-bindings-headers] Error 1 ```
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions