From 0b5d3e634cb07f316d3b119e54bfb8b196d8a26f Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Wed, 29 Oct 2025 15:35:10 -0700 Subject: [PATCH] too chatty --- src/vm.ts | 2 +- tests/native.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vm.ts b/src/vm.ts index b2dec44..a5f5e76 100644 --- a/src/vm.ts +++ b/src/vm.ts @@ -591,7 +591,7 @@ export class VM { // no exception handlers, let it crash if (this.exceptionHandlers.length === 0) { - throw new Error(`Uncaught exception in native function: ${errorMessage}`) + throw new Error(errorMessage) } // use existing THROW logic diff --git a/tests/native.test.ts b/tests/native.test.ts index 410edf3..ed44e26 100644 --- a/tests/native.test.ts +++ b/tests/native.test.ts @@ -2359,5 +2359,5 @@ test('uncaught native function error crashes VM', async () => { throw new Error('uncaught error') }) - await expect(vm.run()).rejects.toThrow('Uncaught exception in native function: uncaught error') + await expect(vm.run()).rejects.toThrow('uncaught error') }) \ No newline at end of file