Home
last modified time | relevance | path

Searched refs:errors (Results 1 – 25 of 74) sorted by relevance

123

/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
88 *Error* is the base class of all errors. Defining a new error class is
125 In most cases, *errors* are caused by the Virtual Machine, or by the
129 *exceptions* and *errors*. Throwing *exceptions* provide a structured way to
131 *errors* in such a context is not recommended.
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DErrors.ets380 * The AggregateError object represents an error when several errors
384 errors: Error[] = [];
390 * @param errors An iterable of errors, may not actually be Error instances.
392 constructor(errors: Error[]) {
394 this.errors = errors;
402 * @param errors An iterable of errors, may not actually be Error instances.
406 constructor(errors: Error[], s: String) {
408 this.errors = errors;
416 * @param errors An iterable of errors, may not actually be Error
427 constructor(errors: Error[], s: String, cause: Object) {
[all …]
/arkcompiler/ets_frontend/ets2panda/test/unit/public/
Dast_verifier_test.cpp113 const auto [warnings, errors] = verifier.Verify({{"NodeHasParent"}}, {{}}, &emptyNode, checks); in TEST_F()
129 const auto [warnings, errors] = verifier.Verify({{"NodeHasType"}}, {{}}, &emptyNode, checks); in TEST_F()
144 … const auto [warnings, errors] = verifier.Verify({{"VariableHasScope"}}, {{}}, &emptyNode, checks); in TEST_F()
167 const auto [warnings, errors] = verifier.Verify({{"VariableHasScope"}}, {{}}, &ident, checks); in TEST_F()
191 …const auto [warnings, errors] = verifier.Verify({{"VariableHasEnclosingScope"}}, {{}}, &ident, che… in TEST_F()
212 const auto [warnings, errors] = in TEST_F()
240 const auto [warnings, errors] = in TEST_F()
263 const auto [warnings, errors] = in TEST_F()
284 const auto [warnings, errors] = in TEST_F()
303 const auto [warnings, errors] = in TEST_F()
[all …]
/arkcompiler/ets_runtime/script/
Drun_ark_executable.py135 out_str = out.decode('UTF-8', errors="ignore")
136 err_str = err.decode('UTF-8', errors="ignore")
143 out_str = out.decode('UTF-8', errors="ignore")
145 out_str = out.decode('UTF-8', errors="ignore")
155 out_str = out.decode('UTF-8', errors="ignore")
157 err_str = err.decode('UTF-8', errors="ignore")
/arkcompiler/ets_frontend/test262/
Deshost.patch199 + // Syntax errors don't have nice error messages...
201 + let errors = str.match(/[(](\d+),(\d+)[)]: (.*)/gm);
203 + if (errors && errors.length) {
206 + message: errors[0],
210 + const stack = parseSyntaxError(errors[0]);
223 + errors = str.match(errorRe2);
224 + if (errors && errors.length >3) {
226 + name: errors[2],
227 + 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/ets_frontend/test/scripts/sdk_test/
Dentry.py45 stdout_utf8 = stdout.decode("utf-8", errors="ignore")
46 stderr_utf8 = stderr.decode("utf-8", errors="ignore")
/arkcompiler/ets_frontend/es2panda/test/
Drunner.py202 self.output = out.decode("utf-8", errors="ignore") + err.decode("utf-8", errors="ignore")
214 self.error = err.decode("utf-8", errors="ignore")
279 out = output_res.decode("utf-8", errors="ignore")
280 err = err.decode("utf-8", errors="ignore")
324 self.error = err.decode("utf-8", errors="ignore")
361 out = out.decode("utf-8", errors="ignore")
362 err = err.decode("utf-8", errors="ignore")
423 self.output = out.decode("utf-8", errors="ignore")
428 self.error = err.decode("utf-8", errors="ignore")
846 self.error = err.decode("utf-8", errors="ignore")
[all …]
/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/ets_frontend/ets2panda/compiler/core/
DcompilerImpl.cpp178 if (auto errors = verificationCtx.DumpWarningsJSON(); errors != "[]") { in CreateCompiler() local
179 LOG(ERROR, ES2PANDA) << errors; in CreateCompiler()
183 if (auto errors = verificationCtx.DumpAssertsJSON(); errors != "[]") { in CreateCompiler() local
184 ASSERT_PRINT(false, errors); in CreateCompiler()
DASTVerifier.h211 …ify(const std::unordered_set<std::string> &warnings, const std::unordered_set<std::string> &errors, in Verify() argument
214 auto [warns, asserts] = verifier_.Verify(warnings, errors, ast, accumulatedChecks_); in Verify()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/08.statements/15.try_statements/
Dtry02.ets18 Try statements run the block of code to handle exceptions and errors.
20 errors.
Dtry.ets19 Try statements run the block of code to handle exceptions and errors.
21 errors.
/arkcompiler/runtime_core/static_core/plugins/ets/doc/
Dvalidate-spec.py91 errors = validate_meta(files)
92 if errors != 0:
/arkcompiler/runtime_core/static_core/static_linker/tests/
Dlinker_test.cpp165 ASSERT_EQ(linkRes.errors.empty(), isGood); in TestSingle()
222 if (linkRes.errors.empty() != isGood) { in TestMultiple()
224 for (auto &err : linkRes.errors) { in TestMultiple()
228 ASSERT_EQ(linkRes.errors.empty(), isGood) << errs; in TestMultiple()
413 ASSERT_TRUE(res.errors.empty()) << res.errors.front(); in TEST()
/arkcompiler/ets_frontend/ets2panda/linter/
DREADME.md48 `-E, --TSC_Errors` - enables logging messages about compilation errors and unresolved symbols.
50 `--warnings-as-errors` - linter detects two kinds of problems: warnings and errors. This parameter …
/arkcompiler/ets_frontend/ets2panda/linter-4.2/
DREADME.md48 `-E, --TSC_Errors` - enables logging messages about compilation errors and unresolved symbols.
50 `--warnings-as-errors` - linter detects two kinds of problems: warnings and errors. This parameter …
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DJsonTest.ets130 let errors = 0
131errors += test(!JSON.isCorrectForParsing(Type.of(new NoConstructor(10.0) as Object)), "No construc…
132errors += test(!JSON.isCorrectForParsing(Type.of(new ForbiddenPrimitives() as Object)), "Forbidden…
133 errors += test(!JSON.isCorrectForParsing(Type.of(new CycleA() as Object)), "Cycle")
134 return errors
/arkcompiler/runtime_core/static_core/static_linker/
Dlink.cpp92 for (const auto &s : res.errors) { in main()
101 const auto wasError = !res.errors.empty(); in main()
Dlinker.h27 std::vector<std::string> errors; member
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DPromise.ets322 let errors = new Error[promises.length];
324 this.reject(new AggregateError(errors, "All promises are rejected"));
339 errors[idx] = error as Error;
341 errors[idx] = new Error(error.toString());
343 if (this.rejectedCnt == errors.length) {
344 this.reject(new AggregateError(errors, "All promises are rejected"));
/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/runtime_core/static_core/plugins/ets/tests/ets-templates/12.errors/01.errors/
Derror_call.ets18 assert: In most case errors are caused by Virtial Machine or by standard libraries. In case it is n…
Derror_call_with_recovery.ets18 assert: In most case errors are caused by Virtial Machine or by standard libraries. In case it is n…
Dnew_error_define_1.ets18 assert: Error is the base class of all the errors. Usually there is no need to define a new error c…

123