@@ -237,9 +237,9 @@ in the ECMAScript specification.
237
237
### module.evaluate([ options] )
238
238
239
239
* ` options ` {Object}
240
- * ` timeout ` {number } Specifies the number of milliseconds to evaluate
240
+ * ` timeout ` {integer } Specifies the number of milliseconds to evaluate
241
241
before terminating execution. If execution is interrupted, an [ ` Error ` ] [ ]
242
- will be thrown.
242
+ will be thrown. This value must be a strictly positive integer.
243
243
* ` breakOnSigint ` {boolean} If ` true ` , the execution will be terminated when
244
244
` SIGINT ` (Ctrl+C) is received. Existing handlers for the event that have
245
245
been attached via ` process.on('SIGINT') ` will be disabled during script
@@ -489,9 +489,9 @@ changes:
489
489
* ` displayErrors ` {boolean} When ` true ` , if an [ ` Error ` ] [ ] error occurs
490
490
while compiling the ` code ` , the line of code causing the error is attached
491
491
to the stack trace.
492
- * ` timeout ` {number } Specifies the number of milliseconds to execute ` code `
492
+ * ` timeout ` {integer } Specifies the number of milliseconds to execute ` code `
493
493
before terminating execution. If execution is terminated, an [ ` Error ` ] [ ]
494
- will be thrown.
494
+ will be thrown. This value must be a strictly positive integer.
495
495
* ` breakOnSigint ` : if ` true ` , the execution will be terminated when
496
496
` SIGINT ` (Ctrl+C) is received. Existing handlers for the
497
497
event that have been attached via ` process.on('SIGINT') ` will be disabled
@@ -552,9 +552,9 @@ changes:
552
552
* ` displayErrors ` {boolean} When ` true ` , if an [ ` Error ` ] [ ] error occurs
553
553
while compiling the ` code ` , the line of code causing the error is attached
554
554
to the stack trace.
555
- * ` timeout ` {number } Specifies the number of milliseconds to execute ` code `
555
+ * ` timeout ` {integer } Specifies the number of milliseconds to execute ` code `
556
556
before terminating execution. If execution is terminated, an [ ` Error ` ] [ ]
557
- will be thrown.
557
+ will be thrown. This value must be a strictly positive integer.
558
558
* ` contextName ` {string} Human-readable name of the newly created context.
559
559
** Default:** ` 'VM Context i' ` , where ` i ` is an ascending numerical index of
560
560
the created context.
@@ -610,9 +610,9 @@ added: v0.3.1
610
610
* ` displayErrors ` {boolean} When ` true ` , if an [ ` Error ` ] [ ] error occurs
611
611
while compiling the ` code ` , the line of code causing the error is attached
612
612
to the stack trace.
613
- * ` timeout ` {number } Specifies the number of milliseconds to execute ` code `
613
+ * ` timeout ` {integer } Specifies the number of milliseconds to execute ` code `
614
614
before terminating execution. If execution is terminated, an [ ` Error ` ] [ ]
615
- will be thrown.
615
+ will be thrown. This value must be a strictly positive integer.
616
616
617
617
Runs the compiled code contained by the ` vm.Script ` within the context of the
618
618
current ` global ` object. Running code does not have access to local scope, but
@@ -757,9 +757,9 @@ Returns `true` if the given `sandbox` object has been [contextified][] using
757
757
* ` displayErrors ` {boolean} When ` true ` , if an [ ` Error ` ] [ ] error occurs
758
758
while compiling the ` code ` , the line of code causing the error is attached
759
759
to the stack trace.
760
- * ` timeout ` {number } Specifies the number of milliseconds to execute ` code `
760
+ * ` timeout ` {integer } Specifies the number of milliseconds to execute ` code `
761
761
before terminating execution. If execution is terminated, an [ ` Error ` ] [ ]
762
- will be thrown.
762
+ will be thrown. This value must be a strictly positive integer.
763
763
764
764
The ` vm.runInContext() ` method compiles ` code ` , runs it within the context of
765
765
the ` contextifiedSandbox ` , then returns the result. Running code does not have
@@ -804,9 +804,9 @@ added: v0.3.1
804
804
* ` displayErrors ` {boolean} When ` true ` , if an [ ` Error ` ] [ ] error occurs
805
805
while compiling the ` code ` , the line of code causing the error is attached
806
806
to the stack trace.
807
- * ` timeout ` {number } Specifies the number of milliseconds to execute ` code `
807
+ * ` timeout ` {integer } Specifies the number of milliseconds to execute ` code `
808
808
before terminating execution. If execution is terminated, an [ ` Error ` ] [ ]
809
- will be thrown.
809
+ will be thrown. This value must be a strictly positive integer.
810
810
* ` contextName ` {string} Human-readable name of the newly created context.
811
811
** Default:** ` 'VM Context i' ` , where ` i ` is an ascending numerical index of
812
812
the created context.
@@ -858,9 +858,9 @@ added: v0.3.1
858
858
* ` displayErrors ` {boolean} When ` true ` , if an [ ` Error ` ] [ ] error occurs
859
859
while compiling the ` code ` , the line of code causing the error is attached
860
860
to the stack trace.
861
- * ` timeout ` {number } Specifies the number of milliseconds to execute ` code `
861
+ * ` timeout ` {integer } Specifies the number of milliseconds to execute ` code `
862
862
before terminating execution. If execution is terminated, an [ ` Error ` ] [ ]
863
- will be thrown.
863
+ will be thrown. This value must be a strictly positive integer.
864
864
865
865
` vm.runInThisContext() ` compiles ` code ` , runs it within the context of the
866
866
current ` global ` and returns the result. Running code does not have access to
0 commit comments