Native confirm/alert throws differently
This commit is contained in:
parent
ca42325ade
commit
90bd1fd7e9
1 changed files with 0 additions and 8 deletions
|
@ -1088,10 +1088,6 @@ describe('chromium feature', () => {
|
||||||
assert.throws(() => {
|
assert.throws(() => {
|
||||||
window.alert({toString: null})
|
window.alert({toString: null})
|
||||||
}, /Cannot convert object to primitive value/)
|
}, /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(() => {
|
assert.throws(() => {
|
||||||
window.confirm({toString: null}, 'title')
|
window.confirm({toString: null}, 'title')
|
||||||
}, /Cannot convert object to primitive value/)
|
}, /Cannot convert object to primitive value/)
|
||||||
|
|
||||||
assert.throws(() => {
|
|
||||||
window.confirm('message', {toString: 3})
|
|
||||||
}, /Cannot convert object to primitive value/)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue