Lines Matching refs:arguments

13   assertTrue(arguments.hasOwnProperty(Symbol.iterator));
14 assertFalse(arguments.propertyIsEnumerable(Symbol.iterator));
15 var descriptor = Object.getOwnPropertyDescriptor(arguments, Symbol.iterator);
20 assertEquals(arguments[Symbol.iterator], [][Symbol.iterator]);
26 var o = arguments;
40 var iterator = arguments[Symbol.iterator]();
50 var args = arguments;
61 var iterator = arguments[Symbol.iterator]();
67 arguments[3] = 4;
68 arguments.length = 4;
75 var args = arguments;
82 arguments[3] = 4;
83 arguments.length = 4;
90 var iterator = arguments[Symbol.iterator]();
94 arguments.length = 2;
101 var args = arguments;
106 arguments.length = 2;
113 var iterator = arguments[Symbol.iterator]();
118 arguments.length = 4;
126 var args = arguments;
132 arguments.length = 4;
141 for (var value of arguments) {
142 assertEquals(arguments[i++], value);
145 assertEquals(arguments.length, i);
152 arguments[Symbol.iterator] = [].entries;
153 for (var entry of arguments) {
154 assertEquals([i, arguments[i]], entry);
158 assertEquals(arguments.length, i);
166 arguments.__defineGetter__('callee', function(){});
167 arguments.__defineGetter__('length', function(){ return 1 });
168 arguments[Symbol.iterator] = [].entries;
169 for (var entry of arguments) {
170 assertEquals([i, arguments[i]], entry);
174 assertEquals(arguments.length, i);
180 for (var x of arguments) {
181 assertEquals(arguments[i], x);
182 arguments[i+1] *= 2;
186 assertEquals(arguments.length, i);
193 for (var x of arguments) {
194 assertEquals(arguments[i], x);
199 assertEquals(arguments.length, i);
207 for (var x of arguments) {
209 assertEquals(arguments[i], x);
213 assertEquals(arguments.length, i);
221 var o = {__proto__:arguments};
230 assertSame([][Symbol.iterator], arguments[Symbol.iterator]);
233 o = Object.freeze({__proto__:arguments});
240 assertSame([][Symbol.iterator], arguments[Symbol.iterator]);