forked from defunkt/ReefVM
too chatty
This commit is contained in:
parent
ba8376e2c3
commit
0b5d3e634c
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
})
|
||||
Loading…
Reference in New Issue
Block a user