Skip to content

Commit 6b8610b

Browse files
committed
fix
1 parent 11ddb71 commit 6b8610b

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/utils/ascWrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class CompilationError extends Error {
1212
}
1313

1414
export async function ascMain(ascArgv: string[]) {
15-
let stderr = createMemoryStream();
15+
const stderr = createMemoryStream();
1616
const { error } = await compiler.compile(ascArgv, { stderr });
1717
if (error) {
1818
throw new CompilationError(stderr.toString());
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"extends": "assemblyscript/std/assembly.json",
3-
"include": [
4-
"./**/*.ts"
5-
]
6-
}
3+
"include": ["./**/*.ts"]
4+
}

tests/ts/test/core/throwError.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { compile } from "../../../../src/core/compile.js";
55
import { compiler } from "../../../../src/utils/ascWrapper.js";
66

77
beforeEach(() => {
8-
jest.spyOn(compiler, "compile").mockImplementation(async () => {
8+
jest.spyOn(compiler, "compile").mockImplementation(() => {
99
throw new Error("mock asc.main() error");
1010
});
1111
});

0 commit comments

Comments
 (0)