1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
function inner(X, T) { return Reflect.construct(X, [], T); } function F() {} let handler = {}; let P = new Proxy(F, handler); for (var i = 0; i < 2000; i += 1) { with ({}) {} inner(F, P); } handler.get = function() {} inner(F, P);