Home
last modified time | relevance | path

Searched refs:Symbol (Results 1 - 25 of 75) sorted by relevance

123

/arkcompiler/toolchain/tooling/test/testcases/js/
H A Dvariable_second.js46 var iterator0 = string0[Symbol.iterator];
86 var iterator1 = array0[Symbol.iterator];
87 var iterator2 = map0[Symbol.iterator];
88 var iterator3 = set0[Symbol.iterator];
89 var iterator4 = uint8array0[Symbol.iterator];
91 var iterator6 = typedarray0[Symbol.iterator];
92 var iterator7 = typedarray1[Symbol.iterator];
93 var iterator8 = typedarray2[Symbol.iterator];
94 var iterator9 = typedarray3[Symbol.iterator];
95 var iterator10 = typedarray4[Symbol
[all...]
/arkcompiler/ets_runtime/test/moduletest/typedarrayfrom/
H A Dtypedarrayfrom.js23 let it = int8Arr[Symbol.iterator]();
33 let it = int8Arr[Symbol.iterator]();
34 it.__proto__["next"] = new Map()[Symbol.iterator]().__proto__["next"];
42 int8Arr.__proto__.__proto__[Symbol.iterator] = function* () {
50 int8Arr.__proto__.__proto__[Symbol.iterator] = function() {
58 it = int8Arr[Symbol.iterator]();
63 it = arr[Symbol.iterator]();
72 v1[Symbol.iterator] = 1;
84 new C3() // since ES2021, default ctor of derivative class does not call Array.prototype[Symbol.iterator]
86 new C4() // spread syntax still calls Array.prototype[Symbol
[all...]
/arkcompiler/ets_runtime/test/moduletest/propertydetector/
H A Dpropertydetector.js38 let unused = p[Symbol.replace]
51 p[Symbol.replace] = function () {return "aaa"}
56 p[Symbol.replace] = function () {return 4}
62 String.prototype[Symbol.matchAll] = function () {return "aaa"}
/arkcompiler/ets_runtime/test/moduletest/instanceofic/
H A Dinstanceofic.js24 static [Symbol.hasInstance](instance) {
38 F[Symbol.hasInstance] = function() { return false };
73 [Symbol.hasInstance]: 1.1
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_symbol.cpp30 BUILTINS_API_TRACE(argv->GetThread(), Symbol, Constructor); in SymbolConstructor()
50 // 5.Return a new unique Symbol value whose [[Description]] value is descString. in SymbolConstructor()
55 // 19.4.3.2 Symbol.prototype.toString()
59 BUILTINS_API_TRACE(argv->GetThread(), Symbol, ToString); in ToString()
64 // 1.If value is a Symbol, return value. in ToString()
85 BUILTINS_API_TRACE(thread, Symbol, SymbolDescriptiveString); in SymbolDescriptiveString()
86 // Assert: Type(sym) is Symbol. in SymbolDescriptiveString()
105 // Return the result of concatenating the strings "Symbol(", desc, and ")". in SymbolDescriptiveString()
119 BUILTINS_API_TRACE(argv->GetThread(), Symbol, ValueOf); in ValueOf()
124 // 1.If value is a Symbol, retur in ValueOf()
[all...]
/arkcompiler/ets_runtime/test/aottest/asyncgenerator/
H A Dasyncgenerator.js22 [Symbol.asyncIterator]: function() {
51 [Symbol.asyncIterator]: function() {
78 [Symbol.asyncIterator]() {
/arkcompiler/runtime_core/static_core/irtoc/lang/
H A Dregmask.rb45 if value.is_a?(Symbol)
73 position = @regmap[position] if position.is_a? Symbol
83 position = @regmap[position] if position.is_a? Symbol
96 elsif other.is_a? Symbol
97 raise "Symbol argument is only allowed if Regmap was specified" unless @regmap
114 elsif other.is_a? Symbol
115 raise "Symbol argument is only allowed if Regmap was specified" unless @regmap
/arkcompiler/ets_runtime/test/moduletest/asyncgenerator/
H A Dasyncgeneratoryieldstar.js26 get [Symbol.iterator]() {
27 throw new Error('it should not get Symbol.iterator');
29 [Symbol.asyncIterator]() {
/arkcompiler/ets_runtime/ecmascript/dfx/dump_code/
H A Djit_dump_elf.h187 SetEntSize(sizeof(maplebe::Symbol)); in SymbolSection()
197 SetSectionSize(symbols.size() * sizeof(maplebe::Symbol));
202 (void)write(fd, reinterpret_cast<const char *>(symbols.data()), symbols.size() * sizeof(maplebe::Symbol));
205 void AppendSymbol(const maplebe::Symbol &symbol) in AppendSymbol()
232 return symbols.size() * sizeof(maplebe::Symbol); in GetDataSize()
247 std::vector<maplebe::Symbol> symbols;
343 void AddSymToSymTab(const maplebe::Symbol &symbol, int64 symIdx);
348 std::vector<std::pair<maplebe::Symbol, int64>> localSymTab;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/assembler/
H A Delf_file.h249 SetEntSize(sizeof(Symbol)); in SymbolSection()
259 SetSectionSize(symbols.size() * sizeof(Symbol));
264 outStream.write(reinterpret_cast<const char *>(symbols.data()), symbols.size() * sizeof(Symbol));
267 void AppendSymbol(const Symbol &symbol) in AppendSymbol()
295 return symbols.size() * sizeof(Symbol); in GetDataSize()
304 std::vector<Symbol> symbols;
/arkcompiler/ets_runtime/test/moduletest/spreadoperator/
H A Dspreadoperator.js61 // test change Symbol.iterator
68 Map.prototype[Symbol.iterator] = iterFunc;
76 Set.prototype[Symbol.iterator] = iterFunc;
81 Uint8Array.prototype[Symbol.iterator] = iterFunc;
107 Array.prototype[Symbol.iterator] = function* () {
/arkcompiler/ets_runtime/test/moduletest/arrayfrom/
H A Darrayfrom.js114 let arrIterBak = Array.prototype[Symbol.iterator];
136 get [Symbol.iterator]() {
158 let arrIterBak = Array.prototype[Symbol.iterator];
162 arr[Symbol.iterator] = arrIterBak;
168 let arrIterBak = Array.prototype[Symbol.iterator];
190 get [Symbol.iterator]() {
/arkcompiler/ets_runtime/test/moduletest/calltype/
H A Dcalltype.js111 Object.defineProperty(Array.prototype, Symbol.iterator, {
142 reg[Symbol.match] = false;
/arkcompiler/ets_runtime/test/moduletest/objectentries/
H A Dobjectentries.js118 const a = Symbol('a');
119 const b = Symbol.for('b');
/arkcompiler/ets_runtime/test/moduletest/setobjectwithproto/
H A Dsetobjectwithproto.js47 Symbol()
62 Object(Symbol())
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
H A Diteratorclose-uncallable-return-test-1.js20 iterable[Symbol.iterator] = function() {
H A Diteratorclose-undefined-return-test-1.js20 iterable[Symbol.iterator] = function() {
/arkcompiler/ets_runtime/test/moduletest/regressbufferdetach/
H A Dregressbufferdetach.js15 delete Float64Array.prototype.__proto__[Symbol.iterator];
/arkcompiler/ets_runtime/test/moduletest/equal/
H A Dequal.js22 var arr = [null, undefined, 0, "", 0n, false, Symbol(0), []];
/arkcompiler/ets_runtime/test/moduletest/regexpcallthrow/
H A Dregexpcallthrow.js30 let iter = /./[Symbol.matchAll]('abc');
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/scenarios/js_to_ets/
H A Dsymbol.js24 let testProperty = Symbol.for('id');
/arkcompiler/ets_runtime/test/moduletest/regexpmaxindex/
H A Dregexpmaxindex.js29 if ("" != RegExp.prototype[Symbol.match].call(fake_re, "abc")) {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/dynamic_enum/
H A Dindex.js20 obj[val] = Symbol(val);
/arkcompiler/ets_runtime/test/moduletest/bigint/
H A Dbigint.js60 const v42 = Symbol.toPrimitive;
61 Symbol.for(v42.description);
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/import/
H A Dmain.js43 exports.tsSymbol = Symbol('id');
44 exports.tsNewSymbol = Symbol('new');

Completed in 7 milliseconds

123