Home
last modified time | relevance | path

Searched refs:ownKeys (Results 1 – 11 of 11) sorted by relevance

/external/v8/test/mjsunit/harmony/
Dreflect-own-keys.js35 var keys = Reflect.ownKeys(obj);
41 var keys = Reflect.ownKeys(obj);
49 var keys = Reflect.ownKeys(obj)
55 var keys = Reflect.ownKeys([1, 2]);
66 keys = Reflect.ownKeys(obj);
73 keys = Reflect.ownKeys(obj);
80 keys = Reflect.ownKeys({0: 'foo', bar: 'baz'});
87 assertThrows(function() { Reflect.ownKeys(4) }, TypeError);
88 assertThrows(function() { Reflect.ownKeys("foo") }, TypeError);
89 assertThrows(function() { Reflect.ownKeys(true) }, TypeError);
[all …]
Dproxies-ownkeys.js14 ownKeys: function(target) { method
22 assertEquals(["foo", "bar"], Reflect.ownKeys(proxy));
27 handler.ownKeys = undefined;
28 assertEquals(["target_one"], Reflect.ownKeys(proxy));
31 handler.ownKeys = function(target) { throw 1; }; function
37 handler.ownKeys = function(target) { return keys; };
49 assertEquals([], Reflect.ownKeys(proxy));
51 assertEquals(["a"], Reflect.ownKeys(proxy));
53 assertEquals(["a", "b", "c"], Reflect.ownKeys(proxy));
74 assertEquals(keys, Reflect.ownKeys(proxy));
[all …]
Dproxies-keys.js15 ownKeys: function(target) { method
39 handler.ownKeys = undefined;
Dproxies.js1140 ownKeys() { throw "myexn" } method
1144 ownKeys() { return this.getOwnPropertyNames2() }, method
1156 ownKeys() { return [] } method
1160 ownKeys() { return ["a", "zz", " ", "0", "toString"] } method
1164 ownKeys() { return ["a", "zz", " ", "0", "toString"] }, method
1171 ownKeys() { return this.keys2() }, method
1176 ownKeys() { return this.keys2() }, method
1184 ownKeys() { return ["a", "23", "zz", "", "0"] }, method
1193 ownKeys() { return this.getOwnPropertyNames2() }, method
1204 get ownKeys() { getter
[all …]
Dreflect.js546 assertEquals(1, Reflect.ownKeys.length);
551 assertThrows(function() { Reflect.ownKeys(); }, TypeError);
552 assertThrows(function() { Reflect.ownKeys(42); }, TypeError);
553 assertThrows(function() { Reflect.ownKeys(null); }, TypeError);
558 assertEquals(["z", "y", "x"], Reflect.ownKeys({z: 3, y: 2, x: 1}));
559 assertEquals(["length"], Reflect.ownKeys([]));
566 Reflect.ownKeys(obj));
Dprivate-symbols.js18 for (var key of Reflect.ownKeys(object)) assertUnreachable();
26 for (var key of Reflect.ownKeys(object2)) assertUnreachable();
Dproxies-json.js50 ownKeys: function() { method
87 ownKeys: function() { method
112 ownKeys: function() { method
201 ownKeys: function() { method
Dproxies-object-assign.js8 ownKeys: function(t) { return ["a", "b"]; }, method
Dproxies-prototype-target-stackoverflow.js84 return Reflect.ownKeys(p);
Dproxies-for.js147 var p = new Proxy({}, {ownKeys: function() { return ["1", Symbol(), "2"] }}); method
Dproxies-prototype-handler-stackoverflow.js102 return Reflect.ownKeys(p);