Add Exceptions to Prelude #15
|
|
@ -111,7 +111,7 @@ describe('Native Function Exceptions', () => {
|
|||
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')
|
||||
})
|
||||
|
||||
test('native function in function-level catch', async () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user