doc: clarify that columnOffset applies only to the first line
Fixes: https://github.com/nodejs/node/issues/26780 PR-URL: https://github.com/nodejs/node/pull/37563 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
parent
b803bca4fa
commit
ee58b2dbfb
@ -70,8 +70,8 @@ changes:
|
|||||||
by this script. **Default:** `'evalmachine.<anonymous>'`.
|
by this script. **Default:** `'evalmachine.<anonymous>'`.
|
||||||
* `lineOffset` {number} Specifies the line number offset that is displayed
|
* `lineOffset` {number} Specifies the line number offset that is displayed
|
||||||
in stack traces produced by this script. **Default:** `0`.
|
in stack traces produced by this script. **Default:** `0`.
|
||||||
* `columnOffset` {number} Specifies the column number offset that is displayed
|
* `columnOffset` {number} Specifies the first-line column number offset that
|
||||||
in stack traces produced by this script. **Default:** `0`.
|
is displayed in stack traces produced by this script. **Default:** `0`.
|
||||||
* `cachedData` {Buffer|TypedArray|DataView} Provides an optional `Buffer` or
|
* `cachedData` {Buffer|TypedArray|DataView} Provides an optional `Buffer` or
|
||||||
`TypedArray`, or `DataView` with V8's code cache data for the supplied
|
`TypedArray`, or `DataView` with V8's code cache data for the supplied
|
||||||
source. When supplied, the `cachedDataRejected` value will be set to
|
source. When supplied, the `cachedDataRejected` value will be set to
|
||||||
@ -652,8 +652,8 @@ defined in the ECMAScript specification.
|
|||||||
`vm.createContext()` method, to compile and evaluate this `Module` in.
|
`vm.createContext()` method, to compile and evaluate this `Module` in.
|
||||||
* `lineOffset` {integer} Specifies the line number offset that is displayed
|
* `lineOffset` {integer} Specifies the line number offset that is displayed
|
||||||
in stack traces produced by this `Module`. **Default:** `0`.
|
in stack traces produced by this `Module`. **Default:** `0`.
|
||||||
* `columnOffset` {integer} Specifies the column number offset that is
|
* `columnOffset` {integer} Specifies the first-line column number offset that
|
||||||
displayed in stack traces produced by this `Module`. **Default:** `0`.
|
is displayed in stack traces produced by this `Module`. **Default:** `0`.
|
||||||
* `initializeImportMeta` {Function} Called during evaluation of this `Module`
|
* `initializeImportMeta` {Function} Called during evaluation of this `Module`
|
||||||
to initialize the `import.meta`.
|
to initialize the `import.meta`.
|
||||||
* `meta` {import.meta}
|
* `meta` {import.meta}
|
||||||
@ -835,8 +835,8 @@ changes:
|
|||||||
by this script. **Default:** `''`.
|
by this script. **Default:** `''`.
|
||||||
* `lineOffset` {number} Specifies the line number offset that is displayed
|
* `lineOffset` {number} Specifies the line number offset that is displayed
|
||||||
in stack traces produced by this script. **Default:** `0`.
|
in stack traces produced by this script. **Default:** `0`.
|
||||||
* `columnOffset` {number} Specifies the column number offset that is displayed
|
* `columnOffset` {number} Specifies the first-line column number offset that
|
||||||
in stack traces produced by this script. **Default:** `0`.
|
is displayed in stack traces produced by this script. **Default:** `0`.
|
||||||
* `cachedData` {Buffer|TypedArray|DataView} Provides an optional `Buffer` or
|
* `cachedData` {Buffer|TypedArray|DataView} Provides an optional `Buffer` or
|
||||||
`TypedArray`, or `DataView` with V8's code cache data for the supplied
|
`TypedArray`, or `DataView` with V8's code cache data for the supplied
|
||||||
source.
|
source.
|
||||||
@ -966,8 +966,8 @@ changes:
|
|||||||
by this script. **Default:** `'evalmachine.<anonymous>'`.
|
by this script. **Default:** `'evalmachine.<anonymous>'`.
|
||||||
* `lineOffset` {number} Specifies the line number offset that is displayed
|
* `lineOffset` {number} Specifies the line number offset that is displayed
|
||||||
in stack traces produced by this script. **Default:** `0`.
|
in stack traces produced by this script. **Default:** `0`.
|
||||||
* `columnOffset` {number} Specifies the column number offset that is displayed
|
* `columnOffset` {number} Specifies the first-line column number offset that
|
||||||
in stack traces produced by this script. **Default:** `0`.
|
is displayed in stack traces produced by this script. **Default:** `0`.
|
||||||
* `displayErrors` {boolean} When `true`, if an [`Error`][] occurs
|
* `displayErrors` {boolean} When `true`, if an [`Error`][] occurs
|
||||||
while compiling the `code`, the line of code causing the error is attached
|
while compiling the `code`, the line of code causing the error is attached
|
||||||
to the stack trace. **Default:** `true`.
|
to the stack trace. **Default:** `true`.
|
||||||
@ -1049,8 +1049,8 @@ changes:
|
|||||||
by this script. **Default:** `'evalmachine.<anonymous>'`.
|
by this script. **Default:** `'evalmachine.<anonymous>'`.
|
||||||
* `lineOffset` {number} Specifies the line number offset that is displayed
|
* `lineOffset` {number} Specifies the line number offset that is displayed
|
||||||
in stack traces produced by this script. **Default:** `0`.
|
in stack traces produced by this script. **Default:** `0`.
|
||||||
* `columnOffset` {number} Specifies the column number offset that is displayed
|
* `columnOffset` {number} Specifies the first-line column number offset that
|
||||||
in stack traces produced by this script. **Default:** `0`.
|
is displayed in stack traces produced by this script. **Default:** `0`.
|
||||||
* `displayErrors` {boolean} When `true`, if an [`Error`][] occurs
|
* `displayErrors` {boolean} When `true`, if an [`Error`][] occurs
|
||||||
while compiling the `code`, the line of code causing the error is attached
|
while compiling the `code`, the line of code causing the error is attached
|
||||||
to the stack trace. **Default:** `true`.
|
to the stack trace. **Default:** `true`.
|
||||||
@ -1143,8 +1143,8 @@ changes:
|
|||||||
by this script. **Default:** `'evalmachine.<anonymous>'`.
|
by this script. **Default:** `'evalmachine.<anonymous>'`.
|
||||||
* `lineOffset` {number} Specifies the line number offset that is displayed
|
* `lineOffset` {number} Specifies the line number offset that is displayed
|
||||||
in stack traces produced by this script. **Default:** `0`.
|
in stack traces produced by this script. **Default:** `0`.
|
||||||
* `columnOffset` {number} Specifies the column number offset that is displayed
|
* `columnOffset` {number} Specifies the first-line column number offset that
|
||||||
in stack traces produced by this script. **Default:** `0`.
|
is displayed in stack traces produced by this script. **Default:** `0`.
|
||||||
* `displayErrors` {boolean} When `true`, if an [`Error`][] occurs
|
* `displayErrors` {boolean} When `true`, if an [`Error`][] occurs
|
||||||
while compiling the `code`, the line of code causing the error is attached
|
while compiling the `code`, the line of code causing the error is attached
|
||||||
to the stack trace. **Default:** `true`.
|
to the stack trace. **Default:** `true`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user