Index: test/mjsunit/harmony/futex.js |
diff --git a/test/mjsunit/harmony/futex.js b/test/mjsunit/harmony/futex.js |
index 6790988678eb27c200185da4a7cb45e51ef140ab..13a6995c2ad02015633865635b22f5a2790de11f 100644 |
--- a/test/mjsunit/harmony/futex.js |
+++ b/test/mjsunit/harmony/futex.js |
@@ -120,7 +120,7 @@ if (this.Worker) { |
};`; |
var worker = new Worker(workerScript); |
- worker.postMessage({sab: sab, offset: offset}, [sab]); |
+ worker.postMessage({sab: sab, offset: offset}); |
// Spin until the worker is waiting on the futex. |
while (%AtomicsNumWaitersForTesting(i32a, 0) != 1) {} |
@@ -132,7 +132,7 @@ if (this.Worker) { |
var worker2 = new Worker(workerScript); |
var offset = 8; |
var i32a2 = new Int32Array(sab, offset); |
- worker2.postMessage({sab: sab, offset: offset}, [sab]); |
+ worker2.postMessage({sab: sab, offset: offset}); |
// Spin until the worker is waiting on the futex. |
while (%AtomicsNumWaitersForTesting(i32a2, 0) != 1) {} |
@@ -144,7 +144,7 @@ if (this.Worker) { |
// the real address is the same. |
var worker3 = new Worker(workerScript); |
i32a2 = new Int32Array(sab, 4); |
- worker3.postMessage({sab: sab, offset: 8}, [sab]); |
+ worker3.postMessage({sab: sab, offset: 8}); |
// Spin until the worker is waiting on the futex. |
while (%AtomicsNumWaitersForTesting(i32a2, 1) != 1) {} |
@@ -190,7 +190,7 @@ if (this.Worker) { |
var workers = []; |
for (id = 0; id < 4; id++) { |
workers[id] = new Worker(workerScript); |
- workers[id].postMessage({sab: sab, id: id}, [sab]); |
+ workers[id].postMessage({sab: sab, id: id}); |
} |
// Spin until all workers are waiting on the futex. |