Home
last modified time | relevance | path

Searched full:reflect (Results 1 – 25 of 30) sorted by relevance

12

/arkcompiler/ets_runtime/test/aottest/aot_compatibility_test/builtins_api/
Dbuiltins_api.ts26 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"));
Dexpect_output.txt18 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/
Dbuiltins_reflect.cpp22 // 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 …]
Dbuiltins.cpp156 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/
Dbuiltins_reflect_test.cpp70 // 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/
Druntime_call_id.h471 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/
Dproperty_operation.ts58 print(Reflect.has(b3, "x2"));
61 print(Reflect.has(b3, "x2"));
/arkcompiler/ets_frontend/es2panda/parser/
Dcommonjs.cpp103 auto *reflect = AllocNode<ir::Identifier>("Reflect", Allocator()); in ParseCommonjs() local
104 auto *reflectApply = AllocNode<ir::MemberExpression>(reflect, apply, in ParseCommonjs()
DparserImpl.h221 …* 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/
Dcalle.polymorphic.short.yaml30 .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
Dcall.polymorphic.short.yaml31 .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
Dcall.polymorphic.range.yaml31 .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
Dcalle.polymorphic.range.yaml31 .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
Dcall.polymorphic.yaml31 .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
Dcalle.polymorphic.yaml31 .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/
Dallocatearraybuffer.js23 var arrayBuffer = Reflect.construct(ArrayBuffer, [16], newTarget);
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
Dsnapshot_processor.cpp156 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/
Dutil.ts345 …* 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/
Dcommonjs.test.ts56 new Tryldglobalbyname(new Imm(0), "Reflect"),
/arkcompiler/ets_frontend/testTs/
Dtest-case.patch1940 +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/
Dtest-commonjs-wrapper-expected.txt12 "name": "Reflect",
/arkcompiler/ets_frontend/test262/
DCI_tests.txt193 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 …]
DdynamicImport_tests.txt308 await-ns-prevent-extensions-reflect.js
356 promise-then-ns-prevent-extensions-reflect.js
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dts_manager.h111 REFLECT, enumerator
Dts_manager.cpp829 case BuiltinTypeId::REFLECT: in GetBuiltinsName()
830 return "Reflect"; in GetBuiltinsName()

12