| /arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/ |
| D | 12_errors.rst | 27 - 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/ |
| D | Errors.ets | 380 * 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/ |
| D | ast_verifier_test.cpp | 113 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/ |
| D | run_ark_executable.py | 135 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/ |
| D | eshost.patch | 199 + // 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],
|
| D | es2022_tests.txt | 334 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/ |
| D | entry.py | 45 stdout_utf8 = stdout.decode("utf-8", errors="ignore") 46 stderr_utf8 = stderr.decode("utf-8", errors="ignore")
|
| /arkcompiler/ets_frontend/es2panda/test/ |
| D | runner.py | 202 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/ |
| D | run_ts_test262.py | 130 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/ |
| D | compilerImpl.cpp | 178 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()
|
| D | ASTVerifier.h | 211 …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/ |
| D | try02.ets | 18 Try statements run the block of code to handle exceptions and errors. 20 errors.
|
| D | try.ets | 19 Try statements run the block of code to handle exceptions and errors. 21 errors.
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/ |
| D | validate-spec.py | 91 errors = validate_meta(files) 92 if errors != 0:
|
| /arkcompiler/runtime_core/static_core/static_linker/tests/ |
| D | linker_test.cpp | 165 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/ |
| D | README.md | 48 `-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/ |
| D | README.md | 48 `-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/ |
| D | JsonTest.ets | 130 let errors = 0 131 …errors += test(!JSON.isCorrectForParsing(Type.of(new NoConstructor(10.0) as Object)), "No construc… 132 …errors += 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/ |
| D | link.cpp | 92 for (const auto &s : res.errors) { in main() 101 const auto wasError = !res.errors.empty(); in main()
|
| D | linker.h | 27 std::vector<std::string> errors; member
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | Promise.ets | 322 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/ |
| D | why.rst | 23 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/ |
| D | error_call.ets | 18 assert: In most case errors are caused by Virtial Machine or by standard libraries. In case it is n…
|
| D | error_call_with_recovery.ets | 18 assert: In most case errors are caused by Virtial Machine or by standard libraries. In case it is n…
|
| D | new_error_define_1.ets | 18 assert: Error is the base class of all the errors. Usually there is no need to define a new error c…
|