mirror of
https://github.com/electron/electron.git
synced 2026-01-28 00:38:35 -05:00
Native confirm/alert throws differently
This commit is contained in:
@@ -1088,10 +1088,6 @@ describe('chromium feature', () => {
|
||||
assert.throws(() => {
|
||||
window.alert({toString: null})
|
||||
}, /Cannot convert object to primitive value/)
|
||||
|
||||
assert.throws(() => {
|
||||
window.alert('message', {toString: 3})
|
||||
}, /Cannot convert object to primitive value/)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1100,10 +1096,6 @@ describe('chromium feature', () => {
|
||||
assert.throws(() => {
|
||||
window.confirm({toString: null}, 'title')
|
||||
}, /Cannot convert object to primitive value/)
|
||||
|
||||
assert.throws(() => {
|
||||
window.confirm('message', {toString: 3})
|
||||
}, /Cannot convert object to primitive value/)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user