diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-08-06 23:10:08 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-08-06 23:10:08 -0400 |
| commit | 4aab1379dadcb13176d7c39dc833332a8f532801 (patch) | |
| tree | b4a5c693a5706de87f4843c885aa73de8106ba06 /test | |
| parent | 3214ce19688985269b619b32386fac1327c9d288 (diff) | |
Use normal #! line to run with node
Diffstat (limited to 'test')
| -rwxr-xr-x | test/nt.js | 3 | ||||
| -rwxr-xr-x | test/t.js | 3 | ||||
| -rwxr-xr-x | test/tj.js | 2 |
3 files changed, 5 insertions, 3 deletions
@@ -1,4 +1,5 @@ -//usr/bin/env node "$0" $@;exit $? +#! /usr/bin/env node + const bqn=require(require('os').homedir+'/bin/bqn') , load=f=>require('fs').readFileSync(__dirname+'/'+f,'utf8') , runWasm=w=>new WebAssembly.Instance(new WebAssembly.Module(Uint8Array.from(w))) @@ -1,4 +1,5 @@ -//usr/bin/env node "$0" $@;exit $? +#! /usr/bin/env node + const execFile = require('child_process').execFile , load=f=>require('fs').readFileSync(__dirname+'/'+f,'utf8') , runWasm=w=>new WebAssembly.Instance(new WebAssembly.Module(Uint8Array.from(w))) @@ -1,4 +1,4 @@ -//usr/bin/env node "$0" $@;exit $? +#! /usr/bin/env node const bqn=require(__dirname+'/../bqn.js') , load=f=>require('fs').readFileSync(__dirname+'/'+f,'utf8'); |
