show bootstrap.js in stacktraces

This commit is contained in:
Igor Klopov 2017-05-16 20:35:36 +03:00
parent 6159e8be3f
commit 2899a78d8f
4 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);