/arkcompiler/toolchain/tooling/test/testcases/js/ |
H A D | variable_second.js | 46 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 D | typedarrayfrom.js | 23 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 D | propertydetector.js | 38 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 D | instanceofic.js | 24 static [Symbol.hasInstance](instance) { 38 F[Symbol.hasInstance] = function() { return false }; 73 [Symbol.hasInstance]: 1.1
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_symbol.cpp | 30 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 D | asyncgenerator.js | 22 [Symbol.asyncIterator]: function() {
51 [Symbol.asyncIterator]: function() {
78 [Symbol.asyncIterator]() {
|
/arkcompiler/runtime_core/static_core/irtoc/lang/ |
H A D | regmask.rb | 45 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 D | asyncgeneratoryieldstar.js | 26 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 D | jit_dump_elf.h | 187 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 D | elf_file.h | 249 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 D | spreadoperator.js | 61 // 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 D | arrayfrom.js | 114 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 D | calltype.js | 111 Object.defineProperty(Array.prototype, Symbol.iterator, { 142 reg[Symbol.match] = false;
|
/arkcompiler/ets_runtime/test/moduletest/objectentries/ |
H A D | objectentries.js | 118 const a = Symbol('a'); 119 const b = Symbol.for('b');
|
/arkcompiler/ets_runtime/test/moduletest/setobjectwithproto/ |
H A D | setobjectwithproto.js | 47 Symbol() 62 Object(Symbol())
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
H A D | iteratorclose-uncallable-return-test-1.js | 20 iterable[Symbol.iterator] = function() {
|
H A D | iteratorclose-undefined-return-test-1.js | 20 iterable[Symbol.iterator] = function() {
|
/arkcompiler/ets_runtime/test/moduletest/regressbufferdetach/ |
H A D | regressbufferdetach.js | 15 delete Float64Array.prototype.__proto__[Symbol.iterator];
|
/arkcompiler/ets_runtime/test/moduletest/equal/ |
H A D | equal.js | 22 var arr = [null, undefined, 0, "", 0n, false, Symbol(0), []];
|
/arkcompiler/ets_runtime/test/moduletest/regexpcallthrow/ |
H A D | regexpcallthrow.js | 30 let iter = /./[Symbol.matchAll]('abc');
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/scenarios/js_to_ets/ |
H A D | symbol.js | 24 let testProperty = Symbol.for('id');
|
/arkcompiler/ets_runtime/test/moduletest/regexpmaxindex/ |
H A D | regexpmaxindex.js | 29 if ("" != RegExp.prototype[Symbol.match].call(fake_re, "abc")) {
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/dynamic_enum/ |
H A D | index.js | 20 obj[val] = Symbol(val);
|
/arkcompiler/ets_runtime/test/moduletest/bigint/ |
H A D | bigint.js | 60 const v42 = Symbol.toPrimitive; 61 Symbol.for(v42.description);
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/import/ |
H A D | main.js | 43 exports.tsSymbol = Symbol('id'); 44 exports.tsNewSymbol = Symbol('new');
|