@@ -32,10 +32,10 @@ The options when creating a script are:
3232 displayed in stack traces
3333- ` columnOffset ` : allows you to add an offset to the column number that is
3434 displayed in stack traces
35- - ` displayErrors ` : whether or not to print any errors to stderr, with the
36- line of code that caused them highlighted, before throwing an exception.
37- Applies only to syntax errors compiling the code; errors while running the
38- code are controlled by the options to the script's methods.
35+ - ` displayErrors ` : if ` true ` , on error, attach the line of code that caused
36+ the error to the stack trace. Applies only to syntax errors compiling the
37+ code; errors while running the code are controlled by the options to the
38+ script's methods.
3939- ` timeout ` : a number of milliseconds to execute ` code ` before terminating
4040 execution. If execution is terminated, an [ ` Error ` ] [ ] will be thrown.
4141- ` cachedData ` : an optional ` Buffer ` with V8's code cache data for the supplied
@@ -150,10 +150,10 @@ The options for running a script are:
150150 displayed in stack traces
151151- ` columnOffset ` : allows you to add an offset to the column number that is
152152 displayed in stack traces
153- - ` displayErrors ` : whether or not to print any errors to stderr, with the
154- line of code that caused them highlighted, before throwing an exception.
155- Applies only to runtime errors executing the code; it is impossible to create
156- a ` Script ` instance with syntax errors, as the constructor will throw.
153+ - ` displayErrors ` : if ` true ` , on error, attach the line of code that caused
154+ the error to the stack trace. Applies only to runtime errors executing the
155+ code; it is impossible to create a ` Script ` instance with syntax errors, as
156+ the constructor will throw.
157157- ` timeout ` : a number of milliseconds to execute the script before terminating
158158 execution. If execution is terminated, an [ ` Error ` ] [ ] will be thrown.
159159
@@ -290,10 +290,10 @@ e.g. `(0,eval)('code')`. However, it also has the following additional options:
290290 displayed in stack traces
291291- ` columnOffset ` : allows you to add an offset to the column number that is
292292 displayed in stack traces
293- - ` displayErrors ` : whether or not to print any errors to stderr, with the
294- line of code that caused them highlighted, before throwing an exception.
295- Will capture both syntax errors from compiling ` code ` and runtime errors
296- thrown by executing the compiled code. Defaults to ` true ` .
293+ - ` displayErrors ` : if ` true ` , on error, attach the line of code that caused
294+ the error to the stack trace. Will capture both syntax errors from compiling
295+ ` code ` and runtime errors thrown by executing the compiled code. Defaults to
296+ ` true ` .
297297- ` timeout ` : a number of milliseconds to execute ` code ` before terminating
298298 execution. If execution is terminated, an [ ` Error ` ] [ ] will be thrown.
299299
0 commit comments