Skip to content

Commit e9f5766

Browse files
committed
chore: format
1 parent 5b1b297 commit e9f5766

20 files changed

Lines changed: 2617 additions & 2494 deletions

File tree

assembly/__tests__/abort.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,4 @@ describe("Should catch abort in nested try block", () => {
108108
} catch (e) {
109109
expect("Final Catch").toBe("abort: This should not execute");
110110
}
111-
});
111+
});

assembly/__tests__/throw.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ describe("Should catch throw in nested try block", () => {
107107
} catch (e) {
108108
expect("Final Catch").toBe("Error: This should not execute");
109109
}
110-
});
110+
});

assembly/beans.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import { AbortState } from "./types/abort";
2+
13
export function doSomething(shouldAbort: boolean = false): void {
24
if (shouldAbort) {
35
abort("Function 'doSomething' failed to execute properly!");
46
}
57
console.log("'doSomething' executed");
6-
}
8+
}

assembly/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ try {
88
doSomething(false);
99
console.log("First exception passed");
1010
doSomething(true);
11-
console.log("Second exception passed")
11+
console.log("Second exception passed");
1212
} catch (e) {
1313
console.log("Got an error: " + e.toString());
1414
} finally {

assembly/types/exception.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export class Exception {
4040
} else if (this.type == ExceptionType.Unreachable) {
4141
out = "unreachable";
4242
} else if (this.type == ExceptionType.Error) {
43-
out = "Error" + (ErrorState.message.length ? ": " + ErrorState.message : "");
43+
out =
44+
"Error" + (ErrorState.message.length ? ": " + ErrorState.message : "");
4445
}
4546
return out;
4647
}

transform/lib/index.js

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

0 commit comments

Comments
 (0)