Skip to content

Commit 065dd05

Browse files
authored
chore: fix sandbox (#89)
1 parent 6ca1bd0 commit 065dd05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/sandbox/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @ts-check
22
import { print } from '../../src/index.js';
3-
import { load } from '../common.js';
3+
import { acornParse } from '../common.js';
44
import fs from 'node:fs';
55
import path from 'node:path';
66
import { fileURLToPath } from 'node:url';
@@ -9,6 +9,6 @@ import ts from '../../src/languages/ts/index.js';
99
const dir = path.resolve(fileURLToPath(import.meta.url), '..');
1010
const input_js = fs.readFileSync(`${dir}/_input.ts`);
1111
const content = input_js.toString();
12-
const { ast, comments } = load(content);
12+
const { ast, comments } = acornParse(content);
1313
const { code } = print(ast, ts({ comments }));
1414
fs.writeFileSync(`${dir}/_output.ts`, code);

0 commit comments

Comments
 (0)