Atomics: drop unused id argument to agent receiveBroadcast handler

This commit is contained in:
Rick Waldron 2020-04-08 15:31:48 -04:00
parent 974a4ffbc5
commit a46bbfd872
13 changed files with 13 additions and 13 deletions

View File

@ -16,7 +16,7 @@ const i64a = new BigInt64Array(
const RUNNING = 1;
$262.agent.start(`
$262.agent.receiveBroadcast(function(sab, id) {
$262.agent.receiveBroadcast(function(sab) {
const i64a = new BigInt64Array(sab);
Atomics.add(i64a, ${RUNNING}, 1n);

View File

@ -24,7 +24,7 @@ const i64a = new BigInt64Array(
);
$262.agent.start(`
$262.agent.receiveBroadcast(function(sab, id) {
$262.agent.receiveBroadcast(function(sab) {
const i64a = new BigInt64Array(sab);
Atomics.add(i64a, ${RUNNING}, 1n);

View File

@ -12,7 +12,7 @@ features: [Atomics, SharedArrayBuffer, TypedArray]
const RUNNING = 1;
$262.agent.start(`
$262.agent.receiveBroadcast(function(sab, id) {
$262.agent.receiveBroadcast(function(sab) {
var i32a = new Int32Array(sab);
Atomics.add(i32a, ${RUNNING}, 1);

View File

@ -24,7 +24,7 @@ const i32a = new Int32Array(
);
$262.agent.start(`
$262.agent.receiveBroadcast(function(sab, id) {
$262.agent.receiveBroadcast(function(sab) {
const i32a = new Int32Array(sab);
Atomics.add(i32a, ${RUNNING}, 1);

View File

@ -34,7 +34,7 @@ const i32a = new Int32Array(
);
$262.agent.start(`
$262.agent.receiveBroadcast(async (sab, id) => {
$262.agent.receiveBroadcast(async function(sab) => {
const i32a = new Int32Array(sab);
Atomics.add(i32a, ${RUNNING}, 1);

View File

@ -33,7 +33,7 @@ const i32a = new Int32Array(
);
$262.agent.start(`
$262.agent.receiveBroadcast(async (sab, id) => {
$262.agent.receiveBroadcast(async function(sab) => {
const i32a = new Int32Array(sab);
Atomics.add(i32a, ${RUNNING}, 1);

View File

@ -33,7 +33,7 @@ const i32a = new Int32Array(
);
$262.agent.start(`
$262.agent.receiveBroadcast(async (sab, id) => {
$262.agent.receiveBroadcast(async function(sab) => {
const i32a = new Int32Array(sab);
Atomics.add(i32a, ${RUNNING}, 1);

View File

@ -33,7 +33,7 @@ const i32a = new Int32Array(
);
$262.agent.start(`
$262.agent.receiveBroadcast(async (sab, id) => {
$262.agent.receiveBroadcast(async function(sab) => {
const i32a = new Int32Array(sab);
Atomics.add(i32a, ${RUNNING}, 1);

View File

@ -33,7 +33,7 @@ const i32a = new Int32Array(
);
$262.agent.start(`
$262.agent.receiveBroadcast(async (sab, id) => {
$262.agent.receiveBroadcast(async function(sab) => {
const i32a = new Int32Array(sab);
Atomics.add(i32a, ${RUNNING}, 1);

View File

@ -33,7 +33,7 @@ const i32a = new Int32Array(
);
$262.agent.start(`
$262.agent.receiveBroadcast(async (sab, id) => {
$262.agent.receiveBroadcast(async function(sab) => {
const i32a = new Int32Array(sab);
Atomics.add(i32a, ${RUNNING}, 1);

View File

@ -33,7 +33,7 @@ const i32a = new Int32Array(
);
$262.agent.start(`
$262.agent.receiveBroadcast(async (sab, id) => {
$262.agent.receiveBroadcast(async function(sab) => {
const i32a = new Int32Array(sab);
Atomics.add(i32a, ${RUNNING}, 1);

View File

@ -34,7 +34,7 @@ const i32a = new Int32Array(
);
$262.agent.start(`
$262.agent.receiveBroadcast(async (sab, id) => {
$262.agent.receiveBroadcast(async function(sab) => {
const i32a = new Int32Array(sab);
Atomics.add(i32a, ${RUNNING}, 1);

View File

@ -34,7 +34,7 @@ const i32a = new Int32Array(
);
$262.agent.start(`
$262.agent.receiveBroadcast(async (sab, id) => {
$262.agent.receiveBroadcast(async function(sab) => {
const i32a = new Int32Array(sab);
Atomics.add(i32a, ${RUNNING}, 1);