construct-bound-proxy-with-many-arguments.js (478B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 var proxy = Function.prototype.bind.call(new Proxy(Array, {})); 6 for (var i = 10; i < 50; ++i) { 7 var args = Array(i).fill(i); 8 var array = new proxy(...args); 9 assertEqArray(array, args); 10 } 11 12 if (typeof reportCompare === "function") 13 reportCompare(0, 0, "ok");