summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/proxy/proxy-array-length.js
blob: 11045aac0f41ec8a0b63c8a25da5dea39991e6fc (plain)
1
2
3
4
var a = [1, 2, 3];
var p = new Proxy(a, {});
assertEq(p.length, 3);
assertEq(JSON.stringify(p), "[1,2,3]");