Home
last modified time | relevance | path

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

12345678

/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DErrors.sts87 * The AggregateError object represents an error when several errors
91 errors: Error[] = [];
97 * @param errors An iterable of errors, may not actually be Error
108 constructor(errors: Iterable<Error>, message?: String, options?: ErrorOptions) {
111 iteratorForEach<Error>(errors.$_iterator(), (x: Error) : void => {
114 this.errors = iteratorList.toArray() as Error[]
119 constructor(errors: Error[], message: String) {
121 this.errors = errors
124 … static invoke(errors: Iterable<Error>, message?: String, options?: ErrorOptions): AggregateError {
125 return new AggregateError(errors, message, options)
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D12_errors.rst27 - Runtime errors (e.g., null pointer dereferencing, array bounds
48 - *error* to denote runtime errors, and
58 On the contrary, *errors* indicate that there is a failure of the
63 manner than errors.
71 support only errors. |LANG| is based on the presumption that both
72 *exceptions* and *errors* must be supported. ``Exception`` and
87 Errors subtitle
93 ``Error`` is the base class of all errors. Defining a new error class is
135 In most cases, errors are raised by the |LANG| runtime system, or by the
139 exceptions and errors. Throwing exceptions provide a structured way to
[all …]
/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.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');
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');
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/test-lists/ets-cts/
Dchapters.yaml28 - 12.errors
55 - 12.errors
77 - 12.errors
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DcompilerImpl.cpp79 explicit Result(JsonArrayBuilder &&warnings, JsonArrayBuilder &&errors) in Result() argument
80 : warnings_ {std::move(warnings)}, errors_ {std::move(errors)} in Result()
89 JsonArrayBuilder &&Errors() in Errors() function in ark::es2panda::compiler::ASTVerificationRunner::Result
127 auto errors = JsonArrayBuilder {}; in DumpMessages()
128 … const auto filterMessages = [this, &warnings, &errors](const ast_verifier::CheckMessage &message, in DumpMessages()
137errors.Add(message.DumpJSON(ast_verifier::CheckSeverity::ERROR, sourceName, phaseName)); in DumpMessages()
148 return Result {std::move(warnings), std::move(errors)}; in DumpMessages()
220 if (auto errors = result.Errors().Build(); errors != "[]") { in RunVerifierAndPhases() local
221 ASSERT_PRINT(false, errors); in RunVerifierAndPhases()
/arkcompiler/ets_frontend/es2panda/test/
Drunner.py226 self.output = out.decode("utf-8", errors="ignore") + err.decode("utf-8", errors="ignore")
238 self.error = err.decode("utf-8", errors="ignore")
291 self.output = out.decode("utf-8", errors="ignore")
296 self.error = err.decode("utf-8", errors="ignore")
321 self.output = out.decode("utf-8", errors="ignore") + err.decode("utf-8", errors="ignore")
331 self.error = err.decode("utf-8", errors="ignore")
506 gen_abc_output = gen_abc_out.decode("utf-8", errors="ignore")
521 abc_to_asm_output = abc_to_asm_out.decode("utf-8", errors="ignore")
527 self.error += "\n" + gen_abc_err.decode("utf-8", errors="ignore")
529 self.error += "\n" + abc_to_asm_err.decode("utf-8", errors="ignore")
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/
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/test262/
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],
Des2022_tests.txt334 language/expressions/class/elements/syntax/early-errors/grammar-field-identifier-invalid-zwj-error.…
335 language/expressions/class/elements/syntax/early-errors/grammar-fields-same-line-error.js
336 language/expressions/class/elements/syntax/early-errors/grammar-field-identifier-invalid-ues-error.…
337 language/expressions/class/elements/syntax/early-errors/grammar-field-identifier-invalid-zwnj-error…
572 language/statements/class/elements/syntax/early-errors/grammar-field-identifier-invalid-zwj-error.js
573 language/statements/class/elements/syntax/early-errors/grammar-fields-same-line-error.js
574 language/statements/class/elements/syntax/early-errors/grammar-field-identifier-invalid-ues-error.js
575 language/statements/class/elements/syntax/early-errors/grammar-field-identifier-invalid-zwnj-error.…
1314 language/expressions/class/elements/syntax/early-errors/delete/field-delete-twice-covered-err-delet…
1315 language/expressions/class/elements/syntax/early-errors/delete/field-delete-twice-covered-err-delet…
[all …]
/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/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/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…
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/07.value_types/02.floating-point_types_and_operations/subtraction/
Dsubtraction_float.params.yaml54 - { left: 1.25, right: 3.75, result: -2.5 } # no rounding errors
55 - { left: -1.25, right: -3.75, result: 2.5 } # no rounding errors
56 - { left: 1.25, right: -3.75, result: 5.0 } # no rounding errors
57 - { left: -1.25, right: 3.75, result: -5.0 } # no rounding errors
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/07.value_types/02.floating-point_types_and_operations/multiplication/
Dmultiplication_float.params.yaml52 - { left: 1.25, right: 3.75, result: 4.6875 } # no rounding errors
53 - { left: -1.25, right: -3.75, result: 4.6875 } # no rounding errors
54 - { left: 1.25, right: -3.75, result: -4.6875 } # no rounding errors
55 - { left: -1.25, right: 3.75, result: -4.6875 } # no rounding errors
/arkcompiler/ets_frontend/test/scripts/sdk_test/
Dentry.py43 stdout_utf8 = stdout.decode("utf-8", errors="ignore")
44 stderr_utf8 = stderr.decode("utf-8", errors="ignore")
/arkcompiler/runtime_core/static_core/runtime/include/tooling/
Ddebug_interface.h432 * @return Error if any errors occur
438 * @return Error if any errors occur
444 * @return Error if any errors occur
450 * @return Error if any errors occur
459 * @return Error if any errors occur
466 * @return Error if any errors occur
473 * @return Error if any errors occur
480 * @return Frame object that implements PtFrame or Error if any errors occur
489 * @return Error if any errors occur
497 * @return Error if any errors occur
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DErrorsTest.sts30 …res += test(testCreateAggregateError(), "Create an AggregateError object with an array of errors");
78 let errors = [new Error("Error 1"), new Error("Error 2")];
79 let aggErr = new AggregateError(errors, "Aggregate error message");
80 if (aggErr.errors.length == 2 && aggErr.message == "Aggregate error message") {
/arkcompiler/runtime_core/static_core/plugins/ets/doc/cookbook/
Dwhy.rst23 notorious for unexpected runtime errors. For example, a developer can forget
27 with types and having many errors detected by the compiler prior to the
30 with types 'loosely', thus leaving room for runtime errors. |LANG| tries
32 type checking and less runtime errors.
211 the example above always cause compile-time errors. In exchange, we provide
/arkcompiler/ets_runtime/ecmascript/debugger/
Djs_debugger_interface.h133 * @return Error if any errors occur
140 * @return Error if any errors occur
147 * @return Error if any errors occur
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/07.value_types/02.floating-point_types_and_operations/division/
Ddivision_float.params.yaml64 - { left: 4.6875, right: 1.25, result: 3.75 } # no rounding errors
65 - { left: 4.6875, right: -1.25, result: -3.75 } # no rounding errors
66 - { left: -4.6875, right: -3.75, result: 1.25 } # no rounding errors
67 - { left: -4.6875, right: 3.75, result: -1.25 } # no rounding errors
/arkcompiler/ets_runtime/ecmascript/js_type_metadata/
Djs_promise_any_reject_element_function.json5 "name": "Errors",
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_errors.cpp136 JSHandle<JSTaggedValue> errors = BuiltinsBase::GetCallArg(argv, 0); in AggregateErrorConstructor() local
171 // 4. Let errorsList be ? IterableToList(errors). in AggregateErrorConstructor()
172 JSHandle<JSTaggedValue> errorsList = JSObject::IterableToList(thread, errors); in AggregateErrorConstructor()
174 // 5. Perform ! DefinePropertyOrThrow(O, "errors", PropertyDescriptor { [[Configurable]]: true, in AggregateErrorConstructor()

12345678