/third_party/jerryscript/tests/jerry/es2015/ |
D | reflect-own-keys.js | 49 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 …]
|
D | reflect-has.js | 19 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);
|
D | reflect-set.js | 20 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);
|
D | new-target-for-containers.js | 16 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);
|
D | reflect-construct.js | 16 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, {});
|
D | reflect-deleteproperty.js | 23 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);
|
D | reflect-getPrototypeOf.js | 15 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/ |
D | doYouNeedToChangeYourTargetLibraryES2015.js | 4 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 …]
|
D | doYouNeedToChangeYourTargetLibraryES2015.types | 7 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 …]
|
D | decoratorReferenceOnOtherProperty.js | 42 …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…
|
D | metadataOfStringLiteral.js | 12 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de… 17 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
|
D | metadataImportType.js | 11 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de… 16 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
|
D | decoratorMetadataGenericTypeVariableInScope.js | 15 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de… 20 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
|
D | decoratorWithNegativeLiteralTypeNoCrash.js | 11 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de… 16 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
|
D | decoratorMetadataGenericTypeVariable.js | 12 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de… 17 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
|
D | decoratorMetadataGenericTypeVariableDefault.js | 12 …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/ |
D | doYouNeedToChangeYourTargetLibraryES2015.ts | 3 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/ |
D | test-esm-live-binding.mjs | 9 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/ |
D | before+decorators.js | 4 …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/ |
D | main.js | 4 …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/ |
D | main.js | 4 …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/ |
D | Correctly serialize metadata when transpile with CommonJS option.oldTranspile.js | 4 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de… 9 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
|
D | Correctly serialize metadata when transpile with CommonJS option.js | 4 …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/ |
D | main.js | 4 …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/ |
D | main.js | 4 …if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(de… 9 …if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata…
|