show bootstrap.js in stacktraces
This commit is contained in:
parent
6159e8be3f
commit
2899a78d8f
@ -233,7 +233,7 @@
|
||||
+ console.error('Pkg: Error reading from file.');
|
||||
+ process.exit(1);
|
||||
+ }
|
||||
+ var s = new vm.Script(prelude);
|
||||
+ var s = new vm.Script(prelude, { filename: 'pkg/prelude/bootstrap.js' });
|
||||
+ var fn = s.runInThisContext();
|
||||
+ return fn(process, NativeModule.require, console, fd,
|
||||
+ PAYLOAD_POSITION, PRELUDE_POSITION - PAYLOAD_POSITION);
|
||||
|
||||
@ -294,7 +294,7 @@
|
||||
+ console.error('Pkg: Error reading from file.');
|
||||
+ process.exit(1);
|
||||
+ }
|
||||
+ var s = new vm.Script(prelude);
|
||||
+ var s = new vm.Script(prelude, { filename: 'pkg/prelude/bootstrap.js' });
|
||||
+ var fn = s.runInThisContext();
|
||||
+ return fn(process, NativeModule.require, console, fd,
|
||||
+ PAYLOAD_POSITION, PRELUDE_POSITION - PAYLOAD_POSITION);
|
||||
|
||||
@ -205,7 +205,7 @@
|
||||
+ console.error('Pkg: Error reading from file.');
|
||||
+ process.exit(1);
|
||||
+ }
|
||||
+ var s = new vm.Script(prelude);
|
||||
+ var s = new vm.Script(prelude, { filename: 'pkg/prelude/bootstrap.js' });
|
||||
+ var fn = s.runInThisContext();
|
||||
+ return fn(process, NativeModule.require, console, fd,
|
||||
+ PAYLOAD_POSITION, PRELUDE_POSITION - PAYLOAD_POSITION);
|
||||
|
||||
@ -205,7 +205,7 @@
|
||||
+ console.error('Pkg: Error reading from file.');
|
||||
+ process.exit(1);
|
||||
+ }
|
||||
+ var s = new vm.Script(prelude);
|
||||
+ var s = new vm.Script(prelude, { filename: 'pkg/prelude/bootstrap.js' });
|
||||
+ var fn = s.runInThisContext();
|
||||
+ return fn(process, NativeModule.require, console, fd,
|
||||
+ PAYLOAD_POSITION, PRELUDE_POSITION - PAYLOAD_POSITION);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user