From 90bd1fd7e967d041f7ae854690c8d46ae4802f01 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 6 Mar 2018 14:06:29 +0900 Subject: [PATCH] Native confirm/alert throws differently --- spec/chromium-spec.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/spec/chromium-spec.js b/spec/chromium-spec.js index 871af98b4df3..37030b1252ed 100644 --- a/spec/chromium-spec.js +++ b/spec/chromium-spec.js @@ -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/) }) })