| function assert(a, e, m) { |
| m = m || "Expected: " + e + " but got: " + a; |
| function assertArrayContent(a, e) { |
| assert(a.length, e.length, "Size of arrays doesn't match"); |
| for (var i = 0; i < a.length; i++) |
| assert(a[i], e[i], "a[" + i + "] = " + a[i] + " but e[" + i + "] = " + e[i]); |
| defineProperty: function (target, key, descriptor) { |
| assert(descriptor.enumerable, true); |
| assert(descriptor.configurable, true); |
| assert(descriptor.writable, true); |
| return Reflect.defineProperty(target, key, descriptor); |
| class Test extends ProxyBase { |
| assertArrayContent(arr, ["f", "g"]); |