Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: test/mjsunit/regress/regress-crbug-514081.js

Issue 2643723010: [d8] Use ValueSerializer for postMessage (instead of ad-hoc serializer) (Closed)
Patch Set: forgot hash_combine Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/harmony/futex.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « test/mjsunit/harmony/futex.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698