Home
last modified time | relevance | path

Searched full:errors (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DErrors.ets71 * The AggregateError object represents an error when several errors
75 errors: Array<Error>
81 * @param errors An iterable of errors, may not actually be Error
92 constructor(errors: Iterable<Error>, message?: String, options?: ErrorOptions) {
94 this.errors = Array.from<Error>(errors)
97 constructor(errors: Error[], message?: String, options?: ErrorOptions) {
99 this.errors = Array.from<Error>(errors)
102 …static $_invoke(errors: Iterable<Error>, message?: String, options?: ErrorOptions): AggregateError…
103 return new AggregateError(errors, message, options)
106 static $_invoke(errors: Error[], message?: String, options?: ErrorOptions): AggregateError {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DErrorsTest.ets20 const suite = new ArkTestsuite("Errors API tests")
26 … suite.addTest("Create an AggregateError object with an array of errors", testCreateAggregateError)
114 const errors = [new Error("Error 1"), new Error("Error 2")]
115 let aggErr = new AggregateError(errors, "Aggregate error message")
116 assertEQ(aggErr.errors.length, 2)
125 const assertMsg = "length of errors has to be 1"
129 assertEQ(aggErr.errors.length, 1, assertMsg)
130 assertEQ<Error, Error>(errInArr[0], aggErr.errors[0])
134 assertEQ(aggErr.errors.length, 1, assertMsg)
135 assertEQ<Error, Error>(errInArr[0], aggErr.errors[0])
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_ts_subset/std/core/
DPromiseAnySequence4.ets47 if (err.errors.length != 2) {
48 console.log('Test failed. Expected number of errors 2, but got ' + err.errors.length);
51 if (err.errors[0] != p1Err) {
52 console.log('Test failed. Expected the first error is \'abc\', but got ' + err.errors[0]);
55 if (err.errors[1] != p2Err) {
56 console.log('Test failed. Expected the first error is \'def\', but got ' + err.errors[1]);
DPromiseAnyReject.ets20 if (err.errors.length != 1) {
21 console.log('Test failed. Expected errors count 1 but got ' + err.errors.length + '.');
24 if (err.errors[0] != error) {
DPromiseAnyPoisonedThen.ets33 if (err.errors.length != 1) {
34 console.log('Test failed. Expected errors count 1 but got ' + err.errors.length + '.');
37 if (err.errors[0] != error) {
DPromiseAnyRejectThenable.ets28 if (err.errors.length != 1) {
29 console.log('Test failed. Expected errors count 1 but got ' + err.errors.length + '.');
32 if (err.errors[0] != error) {
DPromiseAnyRejectDeferred.ets29 if (err.errors.length != 1) {
30 console.log('Test failed. Expected errors count 1 but got ' + err.errors.length + '.');
33 if (err.errors[0] != error) {
DPromiseAnyEmpty.ets20 if (err.errors.length != 0) {
21 console.log('Test failed. Expected errors count 0 but got ' + err.errors.length + '.');
/arkcompiler/ets_frontend/ets2panda/test/unit/lsp/
Dget_safe_delete_info_test.cpp40 // NOLINTNEXTLINE(readability-identifier-naming,-warnings-as-errors) in TEST_F()
45 // NOLINTNEXTLINE(readability-identifier-naming,-warnings-as-errors) in TEST_F()
63 // NOLINTNEXTLINE(readability-identifier-naming,-warnings-as-errors) in TEST_F()
85 // NOLINTNEXTLINE(readability-identifier-naming,-warnings-as-errors) in TEST_F()
90 // NOLINTNEXTLINE(readability-identifier-naming,-warnings-as-errors) in TEST_F()
111 // NOLINTNEXTLINE(readability-identifier-naming,-warnings-as-errors) in TEST_F()
116 // NOLINTNEXTLINE(readability-identifier-naming,-warnings-as-errors) in TEST_F()
136 // NOLINTNEXTLINE(readability-identifier-naming,-warnings-as-errors) in TEST_F()
154 // NOLINTNEXTLINE(readability-identifier-naming,-warnings-as-errors) in TEST_F()
159 // NOLINTNEXTLINE(readability-identifier-naming,-warnings-as-errors) in TEST_F()
[all …]
Dcode_fix_registration_test.cpp24 const auto &errors = provider.GetErrorCodeToFixes(); in TEST() local
26 EXPECT_FALSE(errors.empty()); in TEST()
/arkcompiler/ets_frontend/test262/
Dtest-list-test262-other-fastverify-qemu-aot-pgo-language-expressions-class-part3.txt986 test262/data/other_tests/language/expressions/class/elements/syntax/early-errors/grammar-ctor-super…
987 test262/data/other_tests/language/expressions/class/elements/syntax/early-errors/grammar-class-body…
988 test262/data/other_tests/language/expressions/class/elements/syntax/early-errors/grammar-field-iden…
989 test262/data/other_tests/language/expressions/class/elements/syntax/early-errors/grammar-field-iden…
990 test262/data/other_tests/language/expressions/class/elements/syntax/early-errors/grammar-fields-sam…
991 test262/data/other_tests/language/expressions/class/elements/syntax/early-errors/grammar-field-iden…
992 test262/data/other_tests/language/expressions/class/elements/syntax/early-errors/grammar-private-en…
993 test262/data/other_tests/language/expressions/class/elements/syntax/early-errors/grammar-private-en…
994 test262/data/other_tests/language/expressions/class/elements/syntax/early-errors/grammar-private-en…
995 test262/data/other_tests/language/expressions/class/elements/syntax/early-errors/grammar-private-en…
[all …]
Dtest-list-test262-other-fastverify-qemu-aot-pgo-language-statements-class-part3.txt509 test262/data/other_tests/language/statements/class/elements/syntax/early-errors/grammar-class-body-…
510 test262/data/other_tests/language/statements/class/elements/syntax/early-errors/grammar-field-ident…
511 test262/data/other_tests/language/statements/class/elements/syntax/early-errors/grammar-field-ident…
512 test262/data/other_tests/language/statements/class/elements/syntax/early-errors/grammar-ctor-super-…
513 test262/data/other_tests/language/statements/class/elements/syntax/early-errors/grammar-field-ident…
514 test262/data/other_tests/language/statements/class/elements/syntax/early-errors/grammar-fields-same…
515 test262/data/other_tests/language/statements/class/elements/syntax/early-errors/grammar-private-env…
516 test262/data/other_tests/language/statements/class/elements/syntax/early-errors/grammar-private-env…
517 test262/data/other_tests/language/statements/class/elements/syntax/early-errors/grammar-private-env…
518 test262/data/other_tests/language/statements/class/elements/syntax/early-errors/grammar-private-env…
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dlibrary_type_call.ts18 * After change extention .sts to .ets got an errors #23897
27 this.c?.bar(0).then(); // No errors, method came from '.ts' file
28 …is.c?.bar(undefined).then(); // Neither 'overload-error' nor 'object-is-possibly-undefined' errors
/arkcompiler/ets_frontend/ets2panda/linter/src/lib/statistics/
DStatisticsLogger.ts49 let errors = 0;
57 errors++;
85 errors,
95 if (problemStats.errors > 0) {
96 const errorRate = (problemStats.errors / fileStats.visitedNodes * 100).toFixed(2);
164 if (problemStats.errors > 0) {
168 totalErrors += problemStats.errors;
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
Dets_exceptions.h29 // NOTE: Is used to throw all language exceptional objects (currently Errors and Exceptions)
32 // NOTE: Is used to throw all language exceptional objects (currently Errors and Exceptions)
38 // NOTE: Is used to throw all language exceptional objects (currently Errors and Exceptions)
/arkcompiler/ets_frontend/arkguard/test/grammar/ecmascript_newfeatures/
Daggregate_error_expected.txt30 assert(j.errors[0].message === 'Promise 1 error', 'success');
31 assert(j.errors[1].message === 'Promise 2 error', 'success');
32 assert(j.errors[2].message === 'Promise 3 error', 'success');
Daggregate_error.ts33 assert(error.errors[0].message === 'Promise 1 error', 'success');
34 assert(error.errors[1].message === 'Promise 2 error', 'success');
35 assert(error.errors[2].message === 'Promise 3 error', 'success');
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-common-tests/intrinsics/
Dstring_repeat.ets39 let errors: int = 0;
43 errors = 1;
46 if (errors != 1) {
/arkcompiler/ets_frontend/ets2panda/test/unit/plugin/
Dplugin_proceed_to_state_error.cpp40 if (!impl->IsAnyError(context)) { // have errors reported in main()
47 if (!impl->IsAnyError(context)) { // have errors reported in main()
51 // Will not proceed after checker if there are errors reported in main()
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D12_errors.rst25 - Runtime errors (e.g., null pointer dereferencing, array bounds
51 Errors subtitle
96 In most cases, errors are raised by the |LANG| runtime system, or by the
102 Errors are handled by using ``try`` statements (see :ref:`Try Statements`).
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/astchecker/
Dtest_astchecker.py44 errors_list.append(line) # Add the line to the errors list
46 errors = "\n".join(errors_list)
54 return errors, obj
56 return errors, {}
/arkcompiler/runtime_core/static_core/tests/tests-u-runner-2/runner/extensions/validators/astchecker/
Dastchecker_validator.py46 errors_list.append(line) # Add the line to the errors list
50 errors = "\n".join(errors_list)
64 return errors, obj
66 return errors, json.loads(actual_output) if actual_output else {}
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/xgc/
Dmark_sts2js_test.cpp38 errors.insert(errors.begin(), err.str()); in GetErrors()
40 return errors; in GetErrors()
43 std::vector<std::string> errors; member
61 values_->errors.push_back(err.str()); in MarkFromObject()
Dmark_cycle_test.cpp44 errors.insert(errors.begin(), err.str()); in GetErrors()
46 return errors; in GetErrors()
50 std::vector<std::string> errors; member
73 values_->errors.push_back(err.str()); in MarkFromObject()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DAbcFile.ets38 * @throws errors happened on loading ABC file.
51 * @throws errors happened on loading ABC file.
71 * @throws errors happened during class initialization.

12345678910>>...12