too chatty

This commit is contained in:
Chris Wanstrath 2025-10-29 15:35:10 -07:00
parent ba8376e2c3
commit 0b5d3e634c
2 changed files with 2 additions and 2 deletions

View File

@ -591,7 +591,7 @@ export class VM {
// no exception handlers, let it crash // no exception handlers, let it crash
if (this.exceptionHandlers.length === 0) { if (this.exceptionHandlers.length === 0) {
throw new Error(`Uncaught exception in native function: ${errorMessage}`) throw new Error(errorMessage)
} }
// use existing THROW logic // use existing THROW logic

View File

@ -2359,5 +2359,5 @@ test('uncaught native function error crashes VM', async () => {
throw new Error('uncaught error') 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')
}) })