Index: test/mjsunit/regress/regress-crbug-514081.js |
diff --git a/test/mjsunit/regress/regress-crbug-514081.js b/test/mjsunit/regress/regress-crbug-514081.js |
index 1acd8315cd4e7faf9188697140f0d3ce49574ec7..af31f4b9c6ceed6e74e5deea65f03d0b7b12e19b 100644 |
--- a/test/mjsunit/regress/regress-crbug-514081.js |
+++ b/test/mjsunit/regress/regress-crbug-514081.js |
@@ -4,10 +4,15 @@ |
if (this.Worker) { |
var __v_7 = new Worker('onmessage = function() {};'); |
+ var e; |
try { |
var ab = new ArrayBuffer(2147483648); |
Michael Achenbach
2017/02/07 10:17:27
Still seeing flakes of this on windows, e.g.:
http
|
- // If creating the ArrayBuffer succeeded, then postMessage should fail. |
- assertThrows(function() { __v_7.postMessage(ab); }); |
+ try { |
+ __v_7.postMessage(ab); |
+ } catch (e) { |
+ // postMessage failed, should be a DataCloneError message. |
+ assertContains('cloned', e.message); |
+ } |
} catch (e) { |
// Creating the ArrayBuffer failed. |
assertInstanceof(e, RangeError); |