Home
last modified time | relevance | path

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

12345678910

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DErrorsTest.sts20 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 assertTrue(aggErr.errors.length == 1, assertMsg)
130 assertEQ<Error, Error>(errInArr[0], aggErr.errors[0])
134 assertTrue(aggErr.errors.length == 1, assertMsg)
135 assertEQ<Error, Error>(errInArr[0], aggErr.errors[0])
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DErrors.sts87 * The AggregateError object represents an error when several errors
91 errors: Array<Error>
97 * @param errors An iterable of errors, may not actually be Error
108 constructor(errors: Iterable<Error>, message?: String, options?: ErrorOptions) {
110 this.errors = Array.from<Error>(errors)
113 constructor(errors: Error[], message?: String, options?: ErrorOptions) {
115 this.errors = Array.from<Error>(errors)
118 … static invoke(errors: Iterable<Error>, message?: String, options?: ErrorOptions): AggregateError {
119 return new AggregateError(errors, message, options)
122 static invoke(errors: Error[], message?: String, options?: ErrorOptions): AggregateError {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D12_errors.rst27 - Runtime errors (e.g., null pointer dereferencing, array bounds
50 - *Error* to denote runtime errors, and
60 On the contrary, *errors* indicate that there is a failure of the
65 manner than errors.
74 support only errors. |LANG| is based on the presumption that both
75 *exceptions* and *errors* must be supported. ``Exception`` and
90 Errors subtitle
96 ``Error`` is the base class of all errors. Defining a new error class is
139 In most cases, errors are raised by the |LANG| runtime system, or by the
143 exceptions and errors. Throwing exceptions provide a structured way to
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/sts_ts_subset/std/core/
DPromiseAnySequence4.sts47 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.sts20 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) {
DPromiseAnyRejectThenable.sts27 if (err.errors.length != 1) {
28 console.log("Test failed. Expected errors count 1 but got " + err.errors.length + ".");
31 if (err.errors[0] != error) {
DPromiseAnyPoisonedThen.sts32 if (err.errors.length != 1) {
33 console.log("Test failed. Expected errors count 1 but got " + err.errors.length + ".");
36 if (err.errors[0] != error) {
DPromiseAnyRejectDeferred.sts28 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) {
DPromiseAnyEmpty.sts20 if (err.errors.length != 0) {
21 console.log("Test failed. Expected errors count 0 but got " + err.errors.length + ".");
/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 …]
Deshost.patch206 + // Syntax errors don't have nice error messages...
208 + let errors = str.match(/[(](\d+),(\d+)[)]: (.*)/gm);
210 + if (errors && errors.length) {
213 + message: errors[0],
217 + const stack = parseSyntaxError(errors[0]);
230 + errors = str.match(errorRe2);
231 + if (errors && errors.length >3) {
233 + name: errors[2],
234 + message: errors[0],
/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_test_suite/intrinsics/
Dstring_repeat.sts39 let errors: int = 0;
43 errors = 1;
46 if (errors != 1) {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/test-lists/ets-cts/
Dchapters.yaml28 - 12.errors
55 - 12.errors
77 - 12.errors
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dlibrary_type_call.sts26 this.c?.bar(0).then(); // No errors, method came from '.ts' file
27 …is.c?.bar(undefined).then(); // Neither 'overload-error' nor 'object-is-possibly-undefined' errors
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DcompilerImpl.cpp80 explicit Result(JsonArrayBuilder &&warnings, JsonArrayBuilder &&errors) in Result() argument
81 : warnings_ {std::move(warnings)}, errors_ {std::move(errors)} in Result()
90 JsonArrayBuilder &&Errors() in Errors() function in ark::es2panda::compiler::ASTVerificationRunner::Result
128 auto errors = JsonArrayBuilder {}; in DumpMessages()
129 … const auto filterMessages = [this, &warnings, &errors](const ast_verifier::CheckMessage &message, in DumpMessages()
138errors.Add(message.DumpJSON(ast_verifier::CheckSeverity::ERROR, sourceName, phaseName)); in DumpMessages()
149 return Result {std::move(warnings), std::move(errors)}; in DumpMessages()
222 if (auto errors = result.Errors().Build(); errors != "[]") { in RunVerifierAndPhases() local
223 ASSERT_PRINT(false, errors); in RunVerifierAndPhases()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/06.statements/02.multiple_catch_clauses_in_try_statements/
Dtry.sts19 Try statements run the block of code to handle exceptions and errors.
21 errors.
/arkcompiler/runtime_core/static_core/runtime/include/tooling/
Ddebug_interface.h388 * @return Error if any errors occur
394 * @return Error if any errors occur
400 * @return Error if any errors occur
406 * @return Error if any errors occur
415 * @return Error if any errors occur
422 * @return Error if any errors occur
429 * @return Error if any errors occur
436 * @return Frame object that implements PtFrame or Error if any errors occur
445 * @return Error if any errors occur
453 * @return Error if any errors occur
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/
Dvalidate_spec.py85 … print("".join([spec_file, ": ", ("meta contains errors" if meta_with_errors else "meta is ok")]))
91 errors = validate_meta(files)
92 if errors != 0:
/arkcompiler/ets_frontend/es2panda/test/
Drunner.py229 self.output = out.decode("utf-8", errors="ignore") + err.decode("utf-8", errors="ignore")
241 self.error = err.decode("utf-8", errors="ignore")
294 self.output = out.decode("utf-8", errors="ignore")
299 self.error = err.decode("utf-8", errors="ignore")
324 self.output = out.decode("utf-8", errors="ignore") + err.decode("utf-8", errors="ignore")
334 self.error = err.decode("utf-8", errors="ignore")
509 gen_abc_output = gen_abc_out.decode("utf-8", errors="ignore")
524 abc_to_asm_output = abc_to_asm_out.decode("utf-8", errors="ignore")
530 self.error += "\n" + gen_abc_err.decode("utf-8", errors="ignore")
532 self.error += "\n" + abc_to_asm_err.decode("utf-8", errors="ignore")
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/07.value_types/02.floating-point_types_and_operations/addition/
Daddition_float.params.yaml49 - { left: 1.25, right: 3.75, result: 5.0 } # no rounding errors
50 - { left: -1.25, right: -3.75, result: -5.0 } # no rounding errors
51 - { left: 1.25, right: -3.75, result: -2.5 } # no rounding errors
52 - { left: -1.25, right: 3.75, result: 2.5 } # no rounding errors
/arkcompiler/ets_runtime/test/
Drun_ts_test262.py130 out.decode("utf-8", errors="ignore") + err.decode("utf-8", errors="ignore"), path)
153 if ("SUCCESS" not in out.decode("utf-8", errors="ignore")) | (
154 "AsyncTestFailure" in out.decode("utf-8", errors="ignore")):
155 …rr_msg, lines = get_error_message(out.decode("utf-8", errors="ignore") + err.decode("utf-8", error…

12345678910