Skip to content

Commit 64c830f

Browse files
committed
try this
1 parent f9aa7c6 commit 64c830f

File tree

1 file changed

+2
-1
lines changed
  • packages/svelte/tests/sourcemaps

1 file changed

+2
-1
lines changed

packages/svelte/tests/sourcemaps/test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { assert } from 'vitest';
33
import { getLocator, locate } from 'locate-character';
44
import { suite, type BaseTest } from '../suite.js';
55
import { compile_directory } from '../helpers.js';
6-
import { TraceMap, originalPositionFor } from '@jridgewell/trace-mapping';
6+
import { LEAST_UPPER_BOUND, TraceMap, originalPositionFor } from '@jridgewell/trace-mapping';
77

88
type SourceMapEntry =
99
| string
@@ -145,6 +145,7 @@ const { test, run } = suite<SourcemapTest>(async (config, cwd) => {
145145
// Same for end of string
146146
const generated_end = generated.column + generated_str.length;
147147
const result_end = originalPositionFor(map, {
148+
bias: LEAST_UPPER_BOUND,
148149
line: generated.line,
149150
column: generated_end
150151
});

0 commit comments

Comments
 (0)