| /arkcompiler/ets_runtime/test/aottest/aot_compatibility_test/builtins_api/ |
| D | builtins_api.ts | 26 print("Reflect.has:", Reflect.has(this, "b")); 27 print("Reflect.ownKeys():", Reflect.ownKeys(this)); 28 print("Reflect.get:", Reflect.get(this, "b")); 29 … print("Reflect.getOwnPropertyDescriptor():", Reflect.getOwnPropertyDescriptor(this, "b")); 35 print("Reflect.has:", Reflect.has(this, "b")); 36 print("Reflect.ownKeys():", Reflect.ownKeys(this)); 37 print("Reflect.get:", Reflect.get(this, "b")); 38 … print("Reflect.getOwnPropertyDescriptor():", Reflect.getOwnPropertyDescriptor(this, "b"));
|
| D | expect_output.txt | 18 Reflect.has: false 19 Reflect.ownKeys(): 20 Reflect.get: undefined 21 Reflect.getOwnPropertyDescriptor(): undefined 26 Reflect.has: true 27 Reflect.ownKeys(): b 28 Reflect.get: abc 29 Reflect.getOwnPropertyDescriptor(): [object Object]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_reflect.cpp | 22 // ecma 26.1.1 Reflect.apply (target, thisArgument, argumentsList) 26 BUILTINS_API_TRACE(argv->GetThread(), Reflect, Apply); in ReflectApply() 32 …THROW_TYPE_ERROR_AND_RETURN(thread, "Reflect.apply target is not callable", JSTaggedValue::Excepti… in ReflectApply() 52 // ecma 26.1.2 Reflect.construct (target, argumentsList [ , newTarget]) 56 BUILTINS_API_TRACE(argv->GetThread(), Reflect, Constructor); in ReflectConstruct() 62 …THROW_TYPE_ERROR_AND_RETURN(thread, "Reflect.construct target is not constructor", JSTaggedValue::… in ReflectConstruct() 69 … THROW_TYPE_ERROR_AND_RETURN(thread, "Reflect.construct newTarget is present, but not constructor", in ReflectConstruct() 86 // ecma 26.1.3 Reflect.defineProperty (target, propertyKey, attributes) 90 BUILTINS_API_TRACE(argv->GetThread(), Reflect, DefineProperty); in ReflectDefineProperty() 96 …THROW_TYPE_ERROR_AND_RETURN(thread, "Reflect.defineProperty target is not object", JSTaggedValue::… in ReflectDefineProperty() [all …]
|
| D | builtins.cpp | 156 using Reflect = builtins::BuiltinsReflect; typedef 2448 SetFunction(env, reflectObject, "apply", Reflect::ReflectApply, FunctionLength::THREE); in InitializeReflect() 2449 SetFunction(env, reflectObject, "construct", Reflect::ReflectConstruct, FunctionLength::TWO); in InitializeReflect() 2450 …SetFunction(env, reflectObject, "defineProperty", Reflect::ReflectDefineProperty, FunctionLength::… in InitializeReflect() 2451 …SetFunction(env, reflectObject, "deleteProperty", Reflect::ReflectDeleteProperty, FunctionLength::… in InitializeReflect() 2452 SetFunction(env, reflectObject, "get", Reflect::ReflectGet, FunctionLength::TWO); in InitializeReflect() 2453 …SetFunction(env, reflectObject, "getOwnPropertyDescriptor", Reflect::ReflectGetOwnPropertyDescript… in InitializeReflect() 2455 …SetFunction(env, reflectObject, "getPrototypeOf", Reflect::ReflectGetPrototypeOf, FunctionLength::… in InitializeReflect() 2456 SetFunction(env, reflectObject, "has", Reflect::ReflectHas, FunctionLength::TWO); in InitializeReflect() 2457 …SetFunction(env, reflectObject, "isExtensible", Reflect::ReflectIsExtensible, FunctionLength::ONE); in InitializeReflect() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_reflect_test.cpp | 70 // native function for test Reflect.apply 97 // Reflect.apply (target, thisArgument, argumentsList) 141 // Reflect.construct (target, argumentsList [ , newTarget]) 173 // Reflect.defineProperty (target, propertyKey, attributes) 224 // Reflect.deleteProperty (target, propertyKey) 253 // Reflect.get (target, propertyKey [ , receiver]) 281 // Reflect.getOwnPropertyDescriptor ( target, propertyKey ) 326 // Reflect.getPrototypeOf (target) 351 // Reflect.has (target, propertyKey) 377 // Reflect.isExtensible (target) [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | runtime_call_id.h | 471 V(Reflect, Apply) \ 472 V(Reflect, Constructor) \ 473 V(Reflect, DefineProperty) \ 474 V(Reflect, DeleteProperty) \ 475 V(Reflect, Get) \ 476 V(Reflect, GetOwnPropertyDescriptor) \ 477 V(Reflect, GetPrototypeOf) \ 478 V(Reflect, Has) \ 479 V(Reflect, OwnKeys) \ 480 V(Reflect, PreventExtensions) \ [all …]
|
| /arkcompiler/ets_runtime/test/aottest/aot_compatibility_test/property_operation/ |
| D | property_operation.ts | 58 print(Reflect.has(b3, "x2")); 61 print(Reflect.has(b3, "x2"));
|
| /arkcompiler/ets_frontend/es2panda/parser/ |
| D | commonjs.cpp | 103 auto *reflect = AllocNode<ir::Identifier>("Reflect", Allocator()); in ParseCommonjs() local 104 auto *reflectApply = AllocNode<ir::MemberExpression>(reflect, apply, in ParseCommonjs()
|
| D | parserImpl.h | 221 …* Transform the commonjs module's AST by wrap the sourceCode & use Reflect.apply to invoke this wr… 224 * Reflect.apply(function (exports, require, module, __filename, __dirname) {
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | calle.polymorphic.short.yaml | 30 .record panda.reflect.Field <external> 31 … .function panda.Object panda.reflect.Field.get(panda.reflect.Field a0, panda.Object a1) <external> 32 .function panda.reflect.Field panda.Class.getField(panda.Class a0, panda.String a1) <external> 48 call.virt.acc.short panda.reflect.Field.get, v0, 0
|
| D | call.polymorphic.short.yaml | 31 .record panda.reflect.Field <external> 32 … .function panda.Object panda.reflect.Field.get(panda.reflect.Field a0, panda.Object a1) <external> 33 .function panda.reflect.Field panda.Class.getField(panda.Class a0, panda.String a1) <external> 58 call.virt.acc.short panda.reflect.Field.get, v0, 0
|
| D | call.polymorphic.range.yaml | 31 .record panda.reflect.Field <external> 32 … .function panda.Object panda.reflect.Field.get(panda.reflect.Field a0, panda.Object a1) <external> 33 .function panda.reflect.Field panda.Class.getField(panda.Class a0, panda.String a1) <external> 58 call.virt.acc.short panda.reflect.Field.get, v0, 0
|
| D | calle.polymorphic.range.yaml | 31 .record panda.reflect.Field <external> 32 … .function panda.Object panda.reflect.Field.get(panda.reflect.Field a0, panda.Object a1) <external> 33 .function panda.reflect.Field panda.Class.getField(panda.Class a0, panda.String a1) <external> 58 call.virt.acc.short panda.reflect.Field.get, v0, 0
|
| D | call.polymorphic.yaml | 31 .record panda.reflect.Field <external> 32 … .function panda.Object panda.reflect.Field.get(panda.reflect.Field a0, panda.Object a1) <external> 33 .function panda.reflect.Field panda.Class.getField(panda.Class a0, panda.String a1) <external> 58 call.virt.acc.short panda.reflect.Field.get, v0, 0
|
| D | calle.polymorphic.yaml | 31 .record panda.reflect.Field <external> 32 … .function panda.Object panda.reflect.Field.get(panda.reflect.Field a0, panda.Object a1) <external> 33 .function panda.reflect.Field panda.Class.getField(panda.Class a0, panda.String a1) <external> 58 call.virt.acc.short panda.reflect.Field.get, v0, 0
|
| /arkcompiler/ets_runtime/test/moduletest/allocatearraybuffer/ |
| D | allocatearraybuffer.js | 23 var arrayBuffer = Reflect.construct(ArrayBuffer, [16], newTarget);
|
| /arkcompiler/ets_runtime/ecmascript/snapshot/mem/ |
| D | snapshot_processor.cpp | 156 using Reflect = builtins::BuiltinsReflect; typedef 616 reinterpret_cast<uintptr_t>(Reflect::ReflectApply), 617 reinterpret_cast<uintptr_t>(Reflect::ReflectConstruct), 618 reinterpret_cast<uintptr_t>(Reflect::ReflectDefineProperty), 619 reinterpret_cast<uintptr_t>(Reflect::ReflectDeleteProperty), 620 reinterpret_cast<uintptr_t>(Reflect::ReflectGet), 621 reinterpret_cast<uintptr_t>(Reflect::ReflectGetOwnPropertyDescriptor), 622 reinterpret_cast<uintptr_t>(Reflect::ReflectGetPrototypeOf), 623 reinterpret_cast<uintptr_t>(Reflect::ReflectHas), 624 reinterpret_cast<uintptr_t>(Reflect::ReflectIsExtensible), [all …]
|
| /arkcompiler/ets_frontend/ts2panda/src/base/ |
| D | util.ts | 345 …* Transform the commonjs module's AST by wrap the sourceCode & use Reflect.apply to invoke this wr… 348 * Reflect.apply(function (exports, require, module, __filename, __dirname) { 354 ts.factory.createIdentifier("Reflect"), ts.factory.createIdentifier("apply")
|
| /arkcompiler/ets_frontend/ts2panda/tests/ |
| D | commonjs.test.ts | 56 new Tryldglobalbyname(new Imm(0), "Reflect"),
|
| /arkcompiler/ets_frontend/testTs/ |
| D | test-case.patch | 1940 +export class Reflect {} 1952 + var Reflect; // collision (es2015-es2021 only) 1956 + var { Reflect } = { Reflect: null }; // collision (es2015-es2021 only) 1960 + var [Reflect] = [null]; // collision (es2015-es2021 only) 1964 + class Reflect {} // collision (es2015-es2021 only) 1968 + function Reflect() {} // collision (es2015-es2021 only) 1972 + enum Reflect {} // collision (es2015-es2021 only) 1976 + const enum Reflect {} // collision (es2015-es2021 only) 1980 + type Reflect = unknown; // no collision 1984 + interface Reflect {}; // no collision [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/parser/commonjs/ |
| D | test-commonjs-wrapper-expected.txt | 12 "name": "Reflect",
|
| /arkcompiler/ets_frontend/test262/ |
| D | CI_tests.txt | 193 built-ins/Reflect/set/creates-a-data-descriptor.js 194 built-ins/Reflect/set/different-property-descriptors.js 195 built-ins/Reflect/set/length.js 196 built-ins/Reflect/set/return-abrupt-from-property-key.js 197 built-ins/Reflect/set/name.js 198 built-ins/Reflect/set/return-false-if-receiver-is-not-writable.js 199 built-ins/Reflect/set/set-value-on-accessor-descriptor-with-receiver.js 200 built-ins/Reflect/set/return-false-if-target-is-not-writable.js 201 built-ins/Reflect/set/set-value-on-accessor-descriptor.js 202 built-ins/Reflect/set/target-is-not-object-throws.js [all …]
|
| D | dynamicImport_tests.txt | 308 await-ns-prevent-extensions-reflect.js 356 promise-then-ns-prevent-extensions-reflect.js
|
| /arkcompiler/ets_runtime/ecmascript/ts_types/ |
| D | ts_manager.h | 111 REFLECT, enumerator
|
| D | ts_manager.cpp | 829 case BuiltinTypeId::REFLECT: in GetBuiltinsName() 830 return "Reflect"; in GetBuiltinsName()
|