Files
sausage/userland/qjs/source/tests/bug1430.js
T
surma d44f1d9677 Build separate native and WASI pipelines with shared multicall names
Checkpoint before integration and package validation.

Assisted-by: SurmAgent:unknown [read] [edit] [bash]
2026-11-12 09:36:27 +00:00

18 lines
307 B
JavaScript

import { assert } from "./assert.js";
const arr = [{ x: 0 }, { x: 1 }];
delete arr[1];
assert(arr.length, 2);
assert(1 in arr, false);
assert(arr[1], undefined);
arr.push({ y: 2 });
assert(arr.length, 3);
assert(1 in arr, false);
assert(2 in arr, true);
assert(arr[1], undefined);
assert(arr[2].y, 2);