Skip to content

Commit 1dc7f42

Browse files
jasnelltargos
authored andcommitted
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 c21731b commit 1dc7f42

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}
@@ -830,8 +830,8 @@ changes:
830830
by this script. **Default:** `''`.
831831
* `lineOffset` {number} Specifies the line number offset that is displayed
832832
in stack traces produced by this script. **Default:** `0`.
833-
* `columnOffset` {number} Specifies the column number offset that is displayed
834-
in stack traces produced by this script. **Default:** `0`.
833+
* `columnOffset` {number} Specifies the first-line column number offset that
834+
is displayed in stack traces produced by this script. **Default:** `0`.
835835
* `cachedData` {Buffer|TypedArray|DataView} Provides an optional `Buffer` or
836836
`TypedArray`, or `DataView` with V8's code cache data for the supplied
837837
source.
@@ -951,8 +951,8 @@ changes:
951951
by this script. **Default:** `'evalmachine.<anonymous>'`.
952952
* `lineOffset` {number} Specifies the line number offset that is displayed
953953
in stack traces produced by this script. **Default:** `0`.
954-
* `columnOffset` {number} Specifies the column number offset that is displayed
955-
in stack traces produced by this script. **Default:** `0`.
954+
* `columnOffset` {number} Specifies the first-line column number offset that
955+
is displayed in stack traces produced by this script. **Default:** `0`.
956956
* `displayErrors` {boolean} When `true`, if an [`Error`][] occurs
957957
while compiling the `code`, the line of code causing the error is attached
958958
to the stack trace. **Default:** `true`.
@@ -1034,8 +1034,8 @@ changes:
10341034
by this script. **Default:** `'evalmachine.<anonymous>'`.
10351035
* `lineOffset` {number} Specifies the line number offset that is displayed
10361036
in stack traces produced by this script. **Default:** `0`.
1037-
* `columnOffset` {number} Specifies the column number offset that is displayed
1038-
in stack traces produced by this script. **Default:** `0`.
1037+
* `columnOffset` {number} Specifies the first-line column number offset that
1038+
is displayed in stack traces produced by this script. **Default:** `0`.
10391039
* `displayErrors` {boolean} When `true`, if an [`Error`][] occurs
10401040
while compiling the `code`, the line of code causing the error is attached
10411041
to the stack trace. **Default:** `true`.
@@ -1128,8 +1128,8 @@ changes:
11281128
by this script. **Default:** `'evalmachine.<anonymous>'`.
11291129
* `lineOffset` {number} Specifies the line number offset that is displayed
11301130
in stack traces produced by this script. **Default:** `0`.
1131-
* `columnOffset` {number} Specifies the column number offset that is displayed
1132-
in stack traces produced by this script. **Default:** `0`.
1131+
* `columnOffset` {number} Specifies the first-line column number offset that
1132+
is displayed in stack traces produced by this script. **Default:** `0`.
11331133
* `displayErrors` {boolean} When `true`, if an [`Error`][] occurs
11341134
while compiling the `code`, the line of code causing the error is attached
11351135
to the stack trace. **Default:** `true`.

0 commit comments

Comments
 (0)