Home
last modified time | relevance | path

Searched refs:Reflect (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/third_party/jerryscript/tests/jerry/es2015/
Dreflect-own-keys.js49 assert (Reflect.ownKeys (object1)[0] === "property1");
50 assert (Reflect.ownKeys (object1)[1] === "property2");
51 assert (Reflect.ownKeys (object1).length === 2);
54 var keys = Reflect.ownKeys (obj);
60 var keys = Reflect.ownKeys (obj);
68 var keys = Reflect.ownKeys (obj)
74 var keys = Reflect.ownKeys ([1, 2]);
86 keys = Reflect.ownKeys (obj);
94 keys = Reflect.ownKeys (obj);
101 keys = Reflect.ownKeys ({0: 'foo', bar: 'baz'});
[all …]
Dreflect-has.js19 assert (Reflect.has ({x: 0}, 'x') === true);
20 assert (Reflect.has ({x: 0}, 'y') === false);
22 assert (Reflect.has ({x: 0}, 'toString') === true);
28 assert (Reflect.has (object, 'prop') === true);
30 assert (2 === Reflect.has.length);
33 Reflect.has ();
40 Reflect.has (42, 'batcat');
47 Reflect.has (null, 'bat');
57 assert (Reflect.has (target, a) === true);
60 Reflect.has (target, b);
Dreflect-set.js20 Reflect.set (object, 'property', 'batcat');
25 Reflect.set (array, 2, 'bat');
29 assert (3 === Reflect.set.length);
32 Reflect.set ();
39 Reflect.set (42, 'bat');
46 Reflect.set (null, 'bat');
55 assert (Reflect.set (target, a, 42) === true);
59 Reflect.set (null, 'bat');
67 assert (Reflect.set (y, 'length', 0) === false);
68 assert (Reflect.set (y, 'length', 2) === true);
Dnew-target-for-containers.js16 var o = new Proxy (function f () {}, { get(t,p,r) { if (p == "prototype") { throw 42.1 } Reflect.ge…
19 Reflect.construct (Map, [], o);
26 Reflect.construct (Set, [], o);
33 Reflect.construct (WeakMap, [], o);
40 Reflect.construct (WeakSet, [], o);
47 Reflect.construct (Map);
54 Reflect.construct (Set);
61 Reflect.construct (WeakMap);
68 Reflect.construct (WeakSet);
Dreflect-construct.js16 Reflect.construct ();
23 Reflect.construct (Date);
29 var d = Reflect.construct (Date, [1776, 6, 4]);
39 var object2 = Reflect.construct (func1, args);
52 var obj1 = Reflect.construct (CatClass, args, DogClass);
58 Reflect.construct (func1, 5, 5);
65 Reflect.construct (5, 5);
76 Reflect.construct (func2, {});
Dreflect-deleteproperty.js23 Reflect.deleteProperty (object, 'property');
27 assert (2 === Reflect.deleteProperty.length);
30 Reflect.deleteProperty ();
37 Reflect.deleteProperty (42, 'bat');
44 Reflect.deleteProperty (null, 'bat');
54 assert (Reflect.deleteProperty (target, a));
57 Reflect.deleteProperty (target, b);
Dreflect-getPrototypeOf.js15 assert (Reflect['getPrototypeOf']({}) === Object.prototype);
16 assert (Reflect['getPrototypeOf'](Object.create(null)) === null);
17 assert (Reflect['getPrototypeOf'](Object.prototype) === null);
20 Reflect.getPrototypeOf();
27 Reflect.getPrototypeOf("str");
/third_party/typescript/tests/baselines/reference/
DdoYouNeedToChangeYourTargetLibraryES2015.js4 const testReflectApply = Reflect.apply(noOp, this, []);
5 const testReflectConstruct = Reflect.construct(noOp, []);
6 const testReflectDefineProperty = Reflect.defineProperty({}, "", {});
7 const testReflectDeleteProperty = Reflect.deleteProperty({}, "");
8 const testReflectGet = Reflect.get({}, "");
9 const testReflectGetOwnPropertyDescriptor = Reflect.getOwnPropertyDescriptor({}, "");
10 const testReflectGetPrototypeOf = Reflect.getPrototypeOf({});
11 const testReflectIsExtensible = Reflect.isExtensible({});
12 const testReflectOwnKeys = Reflect.ownKeys({});
13 const testReflectPreventExtensions = Reflect.preventExtensions({});
[all …]
DdoYouNeedToChangeYourTargetLibraryES2015.types7 const testReflectApply = Reflect.apply(noOp, this, []);
9 >Reflect.apply(noOp, this, []) : any
10 >Reflect.apply : any
11 >Reflect : any
17 const testReflectConstruct = Reflect.construct(noOp, []);
19 >Reflect.construct(noOp, []) : any
20 >Reflect.construct : any
21 >Reflect : any
26 const testReflectDefineProperty = Reflect.defineProperty({}, "", {});
28 >Reflect.defineProperty({}, "", {}) : any
[all …]
DdecoratorReferenceOnOtherProperty.js42 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de…
47 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
76 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de…
81 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
DmetadataOfStringLiteral.js12 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de…
17 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
DmetadataImportType.js11 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de…
16 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
DdecoratorMetadataGenericTypeVariableInScope.js15 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de…
20 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
DdecoratorWithNegativeLiteralTypeNoCrash.js11 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de…
16 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
DdecoratorMetadataGenericTypeVariable.js12 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de…
17 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
DdecoratorMetadataGenericTypeVariableDefault.js12 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de…
17 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
/third_party/typescript/tests/cases/compiler/
DdoYouNeedToChangeYourTargetLibraryES2015.ts3 const testReflectApply = Reflect.apply(noOp, this, []);
4 const testReflectConstruct = Reflect.construct(noOp, []);
5 const testReflectDefineProperty = Reflect.defineProperty({}, "", {});
6 const testReflectDeleteProperty = Reflect.deleteProperty({}, "");
7 const testReflectGet = Reflect.get({}, "");
8 const testReflectGetOwnPropertyDescriptor = Reflect.getOwnPropertyDescriptor({}, "");
9 const testReflectGetPrototypeOf = Reflect.getPrototypeOf({});
10 const testReflectIsExtensible = Reflect.isExtensible({});
11 const testReflectOwnKeys = Reflect.ownKeys({});
12 const testReflectPreventExtensions = Reflect.preventExtensions({});
[all …]
/third_party/node/test/es-module/
Dtest-esm-live-binding.mjs9 const readFileDescriptor = Reflect.getOwnPropertyDescriptor(fs, 'readFile');
11 Reflect.getOwnPropertyDescriptor(fs, 'readFileSync');
16 Reflect.deleteProperty(fs, 'readFile');
26 Reflect.defineProperty(fs, 'readFile', {
35 Reflect.deleteProperty(fs, 'readFile');
42 Reflect.defineProperty(fs, 'readFile', {
57 Reflect.defineProperty(fs, 'readFile', { // eslint-disable-line accessor-pairs
59 Reflect.deleteProperty(fs, 'readFile');
65 Reflect.defineProperty(fs, 'readFileSync', {
77 Reflect.defineProperty(fs, 'readFile', readFileDescriptor);
[all …]
/third_party/typescript/tests/baselines/reference/customTransforms/
Dbefore+decorators.js4 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de…
9 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
/third_party/typescript/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModules/node/
Dmain.js4 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de…
9 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
/third_party/typescript/tests/baselines/reference/project/emitDecoratorMetadataCommonJSISolatedModulesNoResolve/node/
Dmain.js4 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de…
9 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
/third_party/typescript/tests/baselines/reference/transpile/
DCorrectly serialize metadata when transpile with CommonJS option.oldTranspile.js4 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de…
9 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
DCorrectly serialize metadata when transpile with CommonJS option.js4 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de…
9 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
/third_party/typescript/tests/baselines/reference/project/emitDecoratorMetadataSystemJSISolatedModules/node/
Dmain.js4 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de…
9 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
/third_party/typescript/tests/baselines/reference/project/emitDecoratorMetadataSystemJS/node/
Dmain.js4 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de…
9 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…

12345678910>>...12