Skip to content

Commit 732d8ca

Browse files
jasnelldanielleadams
authored andcommittedMar 16, 2021
doc: clarify that columnOffset applies only to the first line
Fixes: #26780 PR-URL: #37563 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 267bbe3 commit 732d8ca

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed
 

‎doc/api/vm.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ changes:
7070
by this script. **Default:** `'evalmachine.<anonymous>'`.
7171
* `lineOffset` {number} Specifies the line number offset that is displayed
7272
in stack traces produced by this script. **Default:** `0`.
73-
* `columnOffset` {number} Specifies the column number offset that is displayed
74-
in stack traces produced by this script. **Default:** `0`.
73+
* `columnOffset` {number} Specifies the first-line column number offset that
74+
is displayed in stack traces produced by this script. **Default:** `0`.
7575
* `cachedData` {Buffer|TypedArray|DataView} Provides an optional `Buffer` or
7676
`TypedArray`, or `DataView` with V8's code cache data for the supplied
7777
source. When supplied, the `cachedDataRejected` value will be set to
@@ -652,8 +652,8 @@ defined in the ECMAScript specification.
652652
`vm.createContext()` method, to compile and evaluate this `Module` in.
653653
* `lineOffset` {integer} Specifies the line number offset that is displayed
654654
in stack traces produced by this `Module`. **Default:** `0`.
655-
* `columnOffset` {integer} Specifies the column number offset that is
656-
displayed in stack traces produced by this `Module`. **Default:** `0`.
655+
* `columnOffset` {integer} Specifies the first-line column number offset that
656+
is displayed in stack traces produced by this `Module`. **Default:** `0`.
657657
* `initializeImportMeta` {Function} Called during evaluation of this `Module`
658658
to initialize the `import.meta`.
659659
* `meta` {import.meta}
@@ -835,8 +835,8 @@ changes:
835835
by this script. **Default:** `''`.
836836
* `lineOffset` {number} Specifies the line number offset that is displayed
837837
in stack traces produced by this script. **Default:** `0`.
838-
* `columnOffset` {number} Specifies the column number offset that is displayed
839-
in stack traces produced by this script. **Default:** `0`.
838+
* `columnOffset` {number} Specifies the first-line column number offset that
839+
is displayed in stack traces produced by this script. **Default:** `0`.
840840
* `cachedData` {Buffer|TypedArray|DataView} Provides an optional `Buffer` or
841841
`TypedArray`, or `DataView` with V8's code cache data for the supplied
842842
source.
@@ -966,8 +966,8 @@ changes:
966966
by this script. **Default:** `'evalmachine.<anonymous>'`.
967967
* `lineOffset` {number} Specifies the line number offset that is displayed
968968
in stack traces produced by this script. **Default:** `0`.
969-
* `columnOffset` {number} Specifies the column number offset that is displayed
970-
in stack traces produced by this script. **Default:** `0`.
969+
* `columnOffset` {number} Specifies the first-line column number offset that
970+
is displayed in stack traces produced by this script. **Default:** `0`.
971971
* `displayErrors` {boolean} When `true`, if an [`Error`][] occurs
972972
while compiling the `code`, the line of code causing the error is attached
973973
to the stack trace. **Default:** `true`.
@@ -1049,8 +1049,8 @@ changes:
10491049
by this script. **Default:** `'evalmachine.<anonymous>'`.
10501050
* `lineOffset` {number} Specifies the line number offset that is displayed
10511051
in stack traces produced by this script. **Default:** `0`.
1052-
* `columnOffset` {number} Specifies the column number offset that is displayed
1053-
in stack traces produced by this script. **Default:** `0`.
1052+
* `columnOffset` {number} Specifies the first-line column number offset that
1053+
is displayed in stack traces produced by this script. **Default:** `0`.
10541054
* `displayErrors` {boolean} When `true`, if an [`Error`][] occurs
10551055
while compiling the `code`, the line of code causing the error is attached
10561056
to the stack trace. **Default:** `true`.
@@ -1143,8 +1143,8 @@ changes:
11431143
by this script. **Default:** `'evalmachine.<anonymous>'`.
11441144
* `lineOffset` {number} Specifies the line number offset that is displayed
11451145
in stack traces produced by this script. **Default:** `0`.
1146-
* `columnOffset` {number} Specifies the column number offset that is displayed
1147-
in stack traces produced by this script. **Default:** `0`.
1146+
* `columnOffset` {number} Specifies the first-line column number offset that
1147+
is displayed in stack traces produced by this script. **Default:** `0`.
11481148
* `displayErrors` {boolean} When `true`, if an [`Error`][] occurs
11491149
while compiling the `code`, the line of code causing the error is attached
11501150
to the stack trace. **Default:** `true`.

0 commit comments

Comments
 (0)
Please sign in to comment.