/arkcompiler/ets_runtime/test/moduletest/arrayFilterCase/ |
H A D | arrayFilterCase.js | 18 const result = words.filter((word) => word.length > 6); 23 const modifiedWords = wordss.filter((word, index, arr) => { 31 const appendedWords = words1.filter((word, index, arr) => { 37 const deleteWords = words2.filter((word, index, arr) => { 50 print(Array.prototype.filter.call(arrayLike, (x) => x <= "b")); 54 return arr.filter((el) => el.toLowerCase().includes(query.toLowerCase())); 71 print(array.filter(isPrime)); // [2, 3, 5, 7, 11, 13] 74 function filter(){ 75 return array1.filter(v => v>0 ); 78 var narr = filter(); [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/escompat/array_js_suites/ |
H A D | test_filter.js | 38 let filter = arr.filter(fnTrue); 39 let filter1 = arr.filter(fn1True); 40 ASSERT_EQ(filter.at(0), arr.at(0)); 48 let filterFalse = arr.filter(fnFalse); 49 let filter1False = arr.filter(fn1False);
|
H A D | test_filter_array.js | 38 let filter = arr.filterArray(fnTrue); 40 ASSERT_EQ(filter[0], arr.at(0));
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | filter_helper.h | 39 static bool IgnoreKeyByFilter(T &desc, uint32_t filter) in IgnoreKeyByFilter() argument 41 if (filter == NATIVE_DEFAULT) { in IgnoreKeyByFilter() 44 if ((filter & NATIVE_WRITABLE) && !desc.IsWritable()) { in IgnoreKeyByFilter() 47 if ((filter & NATIVE_ENUMERABLE) && !desc.IsEnumerable()) { in IgnoreKeyByFilter() 50 if ((filter & NATIVE_CONFIGURABLE) && !desc.IsConfigurable()) { in IgnoreKeyByFilter()
|
H A D | layout_info.cpp | 62 TaggedArray *keyArray, const JSHandle<JSObject> object, uint32_t filter) in GetAllKeysByFilter() 72 if (key.IsString() && !(filter & NATIVE_KEY_SKIP_STRINGS)) { in GetAllKeysByFilter() 77 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter() 90 if (key.IsSymbol() && !(filter & NATIVE_KEY_SKIP_SYMBOLS)) { in GetAllKeysByFilter() 92 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter() 61 GetAllKeysByFilter(const JSThread *thread, uint32_t numberOfProps, uint32_t &keyArrayEffectivelength, TaggedArray *keyArray, const JSHandle<JSObject> object, uint32_t filter) GetAllKeysByFilter() argument
|
H A D | global_dictionary-inl.h | 125 uint32_t &keyArrayEffectivelength, TaggedArray *keyArray, uint32_t filter) const in GetAllKeysByFilter() 136 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter() 140 if (key.IsString() && (filter & NATIVE_KEY_SKIP_STRINGS)) { in GetAllKeysByFilter() 143 if (key.IsSymbol() && (filter & NATIVE_KEY_SKIP_SYMBOLS)) { in GetAllKeysByFilter()
|
H A D | global_dictionary.h | 79 uint32_t &keyArrayEffectivelength, TaggedArray *keyArray, uint32_t filter) const;
|
H A D | tagged_dictionary.cpp | 101 TaggedArray *keyArray, uint32_t filter) const in GetAllKeysByFilter() 109 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter() 113 if (key.IsString() && (filter & NATIVE_KEY_SKIP_STRINGS)) { in GetAllKeysByFilter() 116 if (key.IsSymbol() && (filter & NATIVE_KEY_SKIP_SYMBOLS)) { in GetAllKeysByFilter() 320 uint32_t filter) in GetAllKeysByFilter() 334 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter() 318 GetAllKeysByFilter(const JSThread *thread, const JSHandle<NumberDictionary> &obj, uint32_t &keyArrayEffectivelength, const JSHandle<TaggedArray> &keyArray, uint32_t filter) GetAllKeysByFilter() argument
|
/arkcompiler/ets_runtime/test/moduletest/asmstackoverflow/ |
H A D | asmstackoverflow.js | 226 arr.filter(bar);
241 arr.filter(bar);
256 arr.filter(bar);
271 arr.filter(bar);
286 arr.filter(bar);
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/options/ |
H A D | options_test_lists.py | 42 "filter": self.filter, 98 @value(yaml_path="test-lists.filter", cli_name="filter") 99 def filter(self) -> str: member in TestListsOptions 125 f'--filter="{self.filter}"' if self.filter != TestListsOptions.__DEFAULT_FILTER else '',
|
/arkcompiler/ets_runtime/test/fuzztest/objectgetinformation_fuzzer/ |
H A D | objectgetinformation_fuzzer.cpp | 42 uint32_t filter = 0; in ObjectGetAllPropertyNamesFuzzTest() local 47 if (memcpy_s(&filter, maxByteLen2, data, size) != EOK) { in ObjectGetAllPropertyNamesFuzzTest() 54 object->GetAllPropertyNames(vm, filter); in ObjectGetAllPropertyNamesFuzzTest()
|
/arkcompiler/runtime_core/scripts/ |
H A D | memdump.py | 37 It is possible to filter and sort data (run the script with -h option) 87 def filter(self, space, stacktrace): member in Filter 88 """Checks that space and stacktrace matches filter""" 157 '--filter', 189 if not space_filter.filter(space, stacktrace): 227 allocs = get_allocs(args, Filter(space_filter, args.filter))
|
/arkcompiler/runtime_core/static_core/scripts/ |
H A D | memdump.py | 37 It is possible to filter and sort data (run the script with -h option) 87 def filter(self, space, stacktrace): member in Filter 88 """Checks that space and stacktrace matches filter""" 157 '--filter', 189 if not space_filter.filter(space, stacktrace): 227 allocs = get_allocs(args, Filter(space_filter, args.filter))
|
/arkcompiler/ets_runtime/test/moduletest/typedarrayfilter/ |
H A D | typedarrayfilter.js | 18 * @tc.desc:test TypedArray.filter 25 obj.filter(obj);
|
/arkcompiler/runtime_core/isa/ |
H A D | isapi.rb | 209 filter = [] 212 filter << p 215 filter << 'acc_write' if acc_write? 216 filter << 'acc_read' if acc_read? 217 filter << 'acc_none' if acc_none? 218 return filter
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/dot_operator/sts_to_js/ |
H A D | check_call_chaining.js | 26 const resChaining = Obj.arr.reverse().map(i => i + jsInt).filter(i => i > jsInt).sort().reduce((a, b) => a - b);
|
/arkcompiler/ets_runtime/test/moduletest/throwerror/ |
H A D | throwerror.js | 25 ([1,2]).filter(f1);
|
/arkcompiler/ets_runtime/test/moduletest/arrayfind/ |
H A D | arrayfind.js | 58 .filter((num) => num > 0)
|
/arkcompiler/ets_runtime/tools/ap_file_viewer/src/ap/component/sheet/ |
H A D | TabPaneApSummary.js | 63 filterData(filter) { 65 if (filter === '') { 68 this.apData = this.apDataSource.filter((item) => { 71 return value !== undefined && value !== null && value.toString().toLowerCase().includes(filter);
|
/arkcompiler/ets_frontend/es2panda/test/ |
H A D | runner.py | 105 '--filter', '-f', action='store', dest='filter', 106 default="*", help='test filter regexp') 469 files = fnmatch.filter(files, self.test_root + '**' + self.args.filter) 486 files = fnmatch.filter(files, self.test_root + '**' + self.args.filter) 556 files = fnmatch.filter(files, ts_suite_dir + '**' + self.args.filter) 598 files = fnmatch.filter(file [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/tests/ |
H A D | test_this.py | 115 unk_bp = next(filter(lambda b: b.label == "unknown", walker.meta.breakpoints))
|
/arkcompiler/ets_frontend/ets2panda/public/headers_parser/ |
H A D | parse_define.py | 51 res["values"] = list(filter(None, res["values"]))
|
/arkcompiler/ets_runtime/test/moduletest/array/ |
H A D | array.js | 125 v3.filter(Float32Array) 356 // Test Array.prototype.filter when callbackFn is not callable 358 [].filter(1); 408 new MyObserveArrray().filter(() => { 787 v23.filter(Array); 1156 const evenNumbers = numbers.filter(num => num % 2 === 0); 1159 const greaterThanTwo = numbers.filter(num => num > 2); 1162 const lessThanTen = numbers.filter(num => num < 10); 1165 const divisibleByThree = numbers.filter(num => num % 3 === 0); 1169 const longWords = words.filter(wor [all...] |
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/ |
H A D | runner_base.py | 329 if self.config.test_lists.filter != "*" and self.config.test_lists.groups.chapters: 332 "Incorrect configuration: specify either filter or chapter options" 337 test_files.extend(fnmatch.filter( 339 path.normpath(path.join(directory, self.config.test_lists.filter))
|
/arkcompiler/runtime_core/static_core/verification/util/ |
H A D | lazy.h | 137 auto Filter(F fetcher, L filter) 139 return [fetcher, filter]() mutable -> decltype(fetcher()) { 141 if (filter(*val)) {
|