Index: test/mjsunit/regress/regress-crbug-522496.js |
diff --git a/test/mjsunit/regress-4399.js b/test/mjsunit/regress/regress-crbug-522496.js |
similarity index 61% |
copy from test/mjsunit/regress-4399.js |
copy to test/mjsunit/regress/regress-crbug-522496.js |
index a8fdab7d9d62dfa33d34987f8994536e5dc762cc..e47e0a0677bb574ea9e4b1ca1942341e3fd08bf4 100644 |
--- a/test/mjsunit/regress-4399.js |
+++ b/test/mjsunit/regress/regress-crbug-522496.js |
@@ -2,7 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
- |
if (this.Worker) { |
- assertThrows(function() { Worker.prototype.constructor("55"); }); |
+ var worker = new Worker("onmessage = function(){}"); |
+ var buf = new ArrayBuffer(); |
+ worker.postMessage(buf, [buf]); |
} |