@@ -246,9 +246,9 @@ in the ECMAScript specification.
246
246
### module.evaluate([ options] )
247
247
248
248
* ` options ` {Object}
249
- * ` timeout ` {number } Specifies the number of milliseconds to evaluate
249
+ * ` timeout ` {integer } Specifies the number of milliseconds to evaluate
250
250
before terminating execution. If execution is interrupted, an [ ` Error ` ] [ ]
251
- will be thrown.
251
+ will be thrown. This value must be a strictly positive integer.
252
252
* ` breakOnSigint ` {boolean} If ` true ` , the execution will be terminated when
253
253
` SIGINT ` (Ctrl+C) is received. Existing handlers for the event that have
254
254
been attached via ` process.on('SIGINT') ` will be disabled during script
@@ -507,9 +507,9 @@ changes:
507
507
* ` displayErrors ` {boolean} When ` true ` , if an [ ` Error ` ] [ ] error occurs
508
508
while compiling the ` code ` , the line of code causing the error is attached
509
509
to the stack trace.
510
- * ` timeout ` {number } Specifies the number of milliseconds to execute ` code `
510
+ * ` timeout ` {integer } Specifies the number of milliseconds to execute ` code `
511
511
before terminating execution. If execution is terminated, an [ ` Error ` ] [ ]
512
- will be thrown.
512
+ will be thrown. This value must be a strictly positive integer.
513
513
* ` breakOnSigint ` : if ` true ` , the execution will be terminated when
514
514
` SIGINT ` (Ctrl+C) is received. Existing handlers for the
515
515
event that have been attached via ` process.on('SIGINT') ` will be disabled
@@ -570,9 +570,9 @@ changes:
570
570
* ` displayErrors ` {boolean} When ` true ` , if an [ ` Error ` ] [ ] error occurs
571
571
while compiling the ` code ` , the line of code causing the error is attached
572
572
to the stack trace.
573
- * ` timeout ` {number } Specifies the number of milliseconds to execute ` code `
573
+ * ` timeout ` {integer } Specifies the number of milliseconds to execute ` code `
574
574
before terminating execution. If execution is terminated, an [ ` Error ` ] [ ]
575
- will be thrown.
575
+ will be thrown. This value must be a strictly positive integer.
576
576
* ` contextName ` {string} Human-readable name of the newly created context.
577
577
** Default:** ` 'VM Context i' ` , where ` i ` is an ascending numerical index of
578
578
the created context.
@@ -628,9 +628,9 @@ added: v0.3.1
628
628
* ` displayErrors ` {boolean} When ` true ` , if an [ ` Error ` ] [ ] error occurs
629
629
while compiling the ` code ` , the line of code causing the error is attached
630
630
to the stack trace.
631
- * ` timeout ` {number } Specifies the number of milliseconds to execute ` code `
631
+ * ` timeout ` {integer } Specifies the number of milliseconds to execute ` code `
632
632
before terminating execution. If execution is terminated, an [ ` Error ` ] [ ]
633
- will be thrown.
633
+ will be thrown. This value must be a strictly positive integer.
634
634
635
635
Runs the compiled code contained by the ` vm.Script ` within the context of the
636
636
current ` global ` object. Running code does not have access to local scope, but
@@ -776,9 +776,9 @@ Returns `true` if the given `sandbox` object has been [contextified][] using
776
776
* ` displayErrors ` {boolean} When ` true ` , if an [ ` Error ` ] [ ] error occurs
777
777
while compiling the ` code ` , the line of code causing the error is attached
778
778
to the stack trace.
779
- * ` timeout ` {number } Specifies the number of milliseconds to execute ` code `
779
+ * ` timeout ` {integer } Specifies the number of milliseconds to execute ` code `
780
780
before terminating execution. If execution is terminated, an [ ` Error ` ] [ ]
781
- will be thrown.
781
+ will be thrown. This value must be a strictly positive integer.
782
782
783
783
The ` vm.runInContext() ` method compiles ` code ` , runs it within the context of
784
784
the ` contextifiedSandbox ` , then returns the result. Running code does not have
@@ -823,9 +823,9 @@ added: v0.3.1
823
823
* ` displayErrors ` {boolean} When ` true ` , if an [ ` Error ` ] [ ] error occurs
824
824
while compiling the ` code ` , the line of code causing the error is attached
825
825
to the stack trace.
826
- * ` timeout ` {number } Specifies the number of milliseconds to execute ` code `
826
+ * ` timeout ` {integer } Specifies the number of milliseconds to execute ` code `
827
827
before terminating execution. If execution is terminated, an [ ` Error ` ] [ ]
828
- will be thrown.
828
+ will be thrown. This value must be a strictly positive integer.
829
829
* ` contextName ` {string} Human-readable name of the newly created context.
830
830
** Default:** ` 'VM Context i' ` , where ` i ` is an ascending numerical index of
831
831
the created context.
@@ -877,9 +877,9 @@ added: v0.3.1
877
877
* ` displayErrors ` {boolean} When ` true ` , if an [ ` Error ` ] [ ] error occurs
878
878
while compiling the ` code ` , the line of code causing the error is attached
879
879
to the stack trace.
880
- * ` timeout ` {number } Specifies the number of milliseconds to execute ` code `
880
+ * ` timeout ` {integer } Specifies the number of milliseconds to execute ` code `
881
881
before terminating execution. If execution is terminated, an [ ` Error ` ] [ ]
882
- will be thrown.
882
+ will be thrown. This value must be a strictly positive integer.
883
883
884
884
` vm.runInThisContext() ` compiles ` code ` , runs it within the context of the
885
885
current ` global ` and returns the result. Running code does not have access to
0 commit comments