Skip to content

Commit cdee015

Browse files
committed
fix halt catch regex + turn diagnositcs mode off by default
1 parent d488bfd commit cdee015

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: packages/playground/evaluate/ts.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const evaluateType = async (
110110
`typeString is empty for ${filePath}. was searching for ${searchFor}`,
111111
);
112112
}
113-
if (/instructions: \[\s*{ kind: "Halt";/.test(typeString)) {
113+
if (/instructions: \[\s*{\s*kind: "Halt";/.test(typeString)) {
114114
// the top instruction is a halt
115115
fsWorker.writeFile(errorFilePath, typeString, 'ts');
116116
throw new Error(`sorry, Charlie. you gotta debug this now.`);

Diff for: packages/wasm-to-typescript-types/state.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type Patch<Source, Update> = evaluate<
1919
& Update
2020
>;
2121

22-
export type IDugMyselfANiceBigHoleAndNowIHaveToDebugMyWayOutOfItSomehow = true;
22+
export type IDugMyselfANiceBigHoleAndNowIHaveToDebugMyWayOutOfItSomehow = false;
2323

2424
export namespace State {
2525
export type error<

0 commit comments

Comments
 (0)