Skip to content

Commit 3a382c8

Browse files
committed
chore: clean up and get ready for release
1 parent d1ad423 commit 3a382c8

25 files changed

Lines changed: 3327 additions & 2870 deletions

assembly/__tests__/abort.imports.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { __AbortState } from "../types/abort";
22
import { __Exception, __ExceptionState } from "../types/exception";
33
export function importedFunction(): void {
44
abort("Aborted from importedFunction");
5-
};
5+
}
66

77
export function deepImportedFunction(): void {
88
try {
99
importedFunction();
1010
} catch (e) {
1111
abort("Aborted from deepImportedFunction");
1212
}
13-
};
13+
}

assembly/__tests__/abort.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,4 @@ describe("Should handle abort from an imported function", () => {
163163
// } catch (e) {
164164
// abort("Aborted from nestedAbortingFunction");
165165
// }
166-
// }
166+
// }

assembly/foo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export function foo(): void {
22
throw new Error("Throw from catch");
3-
}
3+
}

assembly/test.transformed.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
import {
2-
__AbortState
3-
} from "./types/abort";
4-
import {
5-
__ExceptionState,
6-
__Exception
7-
} from "./types/exception";
8-
import {
9-
describe,
10-
expect
11-
} from "./__tests__/lib";
1+
import { __AbortState } from "./types/abort";
2+
import { __ExceptionState, __Exception } from "./types/exception";
3+
import { describe, expect } from "./__tests__/lib";
124

135
describe("Should handle immediate abort call", () => {
146
do {
@@ -212,4 +204,4 @@ describe("Should catch abort in nested try block", () => {
212204
__ExceptionState.Failed = false;
213205
}
214206
}
215-
});
207+
});

assembly/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function abortingFunction(): void {
1111

1212
try {
1313
// Do something
14-
foo()
14+
foo();
1515
console.log("This should not execute");
1616
} catch (e) {
1717
console.log("Got an error: " + e.toString());
@@ -23,4 +23,4 @@ try {
2323
} finally {
2424
console.log("Gracefully shutting down...");
2525
process.exit(0);
26-
}
26+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@
4949
},
5050
"type": "module",
5151
"types": "assembly/index.ts"
52-
}
52+
}

transform/lib/index.js

Lines changed: 105 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

transform/lib/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)