Home
last modified time | relevance | path

Searched full:error (Results 1 – 25 of 4472) sorted by relevance

12345678910>>...179

/arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts/
D.eslintrc.json12 "arrow-body-style": ["error", "always"],
14 "class-methods-use-this": ["error", { "exceptMethods": [], "enforceForClassFields": true }],
15 "complexity": ["error", { "max": 15 }],
16 "consistent-return": ["error", { "treatUndefinedAsUnspecified": false }],
17 "curly": ["error", "all"],
18 "dot-notation": "error",
19 "eqeqeq": ["error", "always"],
20 "max-depth": ["error", { "max": 4 }],
21 "multiline-comment-style": ["error", "starred-block"],
22 "@stylistic/no-confusing-arrow": "error",
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/
Deslint.config.mjs59 'accessor-pairs': 'error',
60 'arrow-body-style': ['error', 'always'],
62 'class-methods-use-this': ['error', { exceptMethods: [], enforceForClassFields: true }],
63 complexity: ['error', { max: 15 }],
64 'consistent-return': ['error', { treatUndefinedAsUnspecified: false }],
65 curly: ['error', 'all'],
66 'default-case': 'error',
68 'dot-notation': 'error',
69 eqeqeq: ['error', 'smart'],
70 'func-style': ['error', 'declaration', { allowArrowFunctions: true }],
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DErrorsTest.sts22 suite.addTest("Create an Error object with a message", testCreateError)
23 suite.addTest("Throw an Error and catch it", testThrowError)
24 suite.addTest("Validate the message of the caught Error", testErrorMessage)
25 suite.addTest("Error object with cause", testErrorWithCause)
27 …suite.addTest("Create an AggregateError object with an Array<Error>", testCreateAggregateErrorFrom…
40 err: Error,
41 errSc: Error,
54 factoryUsingConstructor: (x?: string) => Error,
55 factoryUsingStaticInvoke: (x?: string) => Error,
63 `Error in check "${name}" error class with empty message`
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
DInvalidLexer.sts64 /* @@? 16:16 Error SyntaxError: Newline is not allowed in strings */
65 /* @@? 16:16 Error SyntaxError: Unexpected token 'identification literal'. */
66 /* @@? 16:16 Error SyntaxError: Newline is not allowed in strings */
67 /* @@? 16:16 Error SyntaxError: Newline is not allowed in strings */
68 /* @@? 16:16 Error SyntaxError: Newline is not allowed in strings */
69 /* @@? 16:16 Error SyntaxError: Unexpected token 'string literal'. */
70 /* @@? 17:3 Error SyntaxError: Invalid unicode escape sequence */
71 /* @@? 19:19 Error SyntaxError: Invalid digit */
72 /* @@? 19:19 Error SyntaxError: Invalid numeric literal */
73 /* @@? 19:19 Error SyntaxError: Unexpected token 'identification literal'. */
[all …]
DInvalidExpressions.sts60 /* @@? 16:35 Error SyntaxError: Rest parameter cannot have the default value. */
61 /* @@? 17:21 Error SyntaxError: Unexpected token, expected: ')'. */
62 /* @@? 17:24 Error SyntaxError: Unexpected token ')'. */
63 /* @@? 17:24 Error SyntaxError: Unexpected token ')'. */
64 /* @@? 18:35 Error SyntaxError: Unexpected token, expected: '>'. */
65 /* @@? 18:36 Error SyntaxError: Unexpected token, expected: ')'. */
66 /* @@? 22:23 Error SyntaxError: Not enable default value with default undefined */
67 /* @@? 24:22 Error SyntaxError: You didn't set the value. */
68 /* @@? 24:22 Error SyntaxError: Unexpected token ')'. */
69 /* @@? 27:8 Error SyntaxError: Invalid left-hand side in assignment expression */
[all …]
DInvalidClasses.sts81 /* @@? 17:12 Error SyntaxError: Duplicated modifier is not allowed */
82 /* @@? 18:12 Error SyntaxError: Duplicated modifier is not allowed */
83 /* @@? 22:12 Error SyntaxError: Access modifier must precede field and method modifiers. */
84 /* @@? 26:18 Error SyntaxError: Native method cannot be async */
85 /* @@? 27:20 Error SyntaxError: Abstract method cannot be async */
86 /* @@? 35:5 Error SyntaxError: Only one static block is allowed */
87 /* @@? 38:10 Error SyntaxError: Duplicated modifier is not allowed */
88 /* @@? 41:5 Error SyntaxError: The special predefined method '$_get' cannot be asynchronous. */
89 /* @@? 41:5 Error SyntaxError: The special predefined method '$_get' should have exactly one requir…
90 /* @@? 45:5 Error SyntaxError: The special predefined method '$_set' cannot be asynchronous. */
[all …]
DInvalidExpressions1.sts41 /* @@? 16:16 Error SyntaxError: Unexpected token ','. */
42 /* @@? 18:3 Error SyntaxError: Unexpected token, expected ',' or ']' */
43 /* @@? 18:8 Error SyntaxError: Unexpected token 'number literal'. */
44 /* @@? 18:10 Error SyntaxError: Unexpected token ']'. */
45 /* @@? 18:10 Error SyntaxError: Unexpected token ']'. */
46 /* @@? 18:12 Error SyntaxError: Unexpected token '='. */
47 /* @@? 20:6 Error SyntaxError: Unexpected token, expected ',' or ']' */
48 /* @@? 20:11 Error SyntaxError: Unexpected token 'number literal'. */
49 /* @@? 20:13 Error SyntaxError: Unexpected token ']'. */
50 /* @@? 20:13 Error SyntaxError: Unexpected token ']'. */
[all …]
/arkcompiler/ets_runtime/test/aottest/tryldglobalbyname_global_object/
Dtryldglobalbyname_global_object.ts25 } catch (error) {
26 print(error);
37 } catch (error) {
38 print(error);
43 print(Error);
44 globalThis.Error = "Error";
45 print(Error);
46 delete globalThis.Error;
48 print(Error);
49 } catch (error) {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/06.type_inference/01.smart_types/
Dun_bool_ops.params.yaml21 let v: string|number|Error|null|boolean = new Error()
28 let v: string|number|Error|null|boolean = new Error()
32 let v: string|number|Error|null|boolean = new Error()
33 let q: Error|boolean = true
40 let v: string|number|Error|null|boolean = new Error()
41 let q: Error|boolean = true
49 let v: string|number|Error|null|boolean = new Error()
50 let q: Error|boolean = false
57 let v: string|number|Error|null|boolean = new Error()
58 let q: Error|boolean = true
[all …]
Dun_num_ops.params.yaml21 let v: string|number|Error|null = new Error()
33 let v: string|number|Error|null = new Error()
40 let v: string|number|Error|null = new Error()
44 let v: string|number|Error|null = new Error()
51 let v: string|number|Error|null = new Error()
59 let v: string|number|Error|null = new Error()
65 let v: string|number|Error|null = new Error()
72 let v: string|number|Error|null = new Error()
79 let v: string|number|Error|null = new Error()
87 let v: string|number|Error|null = new Error()
[all …]
/arkcompiler/runtime_core/static_core/irtoc/backend/
Ddwarf_builder.cpp39 [[maybe_unused]] int *error) in CreateSectionCallback() argument
63 Dwarf_Error error {nullptr}; in DwarfBuilder() local
67 this, GetIsaName(GetArch()), "V4", nullptr, &dwarf_, &error); in DwarfBuilder()
68 if (error != DW_DLV_OK) { in DwarfBuilder()
69 LOG(FATAL, COMPILER) << "Dwarf initialization failed: " << dwarf_errmsg(error); in DwarfBuilder()
72 int res = dwarf_pro_set_default_string_form(dwarf_, DW_FORM_string, &error); in DwarfBuilder()
74 LOG(FATAL, COMPILER) << "dwarf_pro_set_default_string_form failed: " << dwarf_errmsg(error); in DwarfBuilder()
77 …eUnitDie_ = dwarf_new_die(dwarf_, DW_TAG_compile_unit, nullptr, nullptr, nullptr, nullptr, &error); in DwarfBuilder()
78 if (error != DW_DLV_OK || IsDwarfBadAddr(compileUnitDie_)) { in DwarfBuilder()
79 LOG(FATAL, COMPILER) << "dwarf_new_die failed: " << dwarf_errmsg(error); in DwarfBuilder()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/js/
DInvalidExpressions.js71 // This should be the last line to check syntax error about missing '}'
73 /* @@? 16:4 Error SyntaxError: Illegal expression. Wrap left hand side or entire exponentiation in …
74 /* @@? 18:1 Error SyntaxError: Unexpected token: '<'. */
75 /* @@? 21:14 Error SyntaxError: Invalid left-hand side operator. */
76 /* @@? 22:17 Error SyntaxError: Assigning to 'eval' in strict mode is invalid */
77 /* @@? 23:22 Error SyntaxError: Assigning to 'arguments' in strict mode is invalid */
78 /* @@? 24:16 Error SyntaxError: Invalid left-hand side in prefix operation */
79 /* @@? 25:24 Error SyntaxError: Assigning to 'arguments' in strict mode is invalid */
80 /* @@? 26:19 Error SyntaxError: Assigning to 'eval' in strict mode is invalid */
81 /* @@? 29:5 Error SyntaxError: Deleting local variable in strict mode */
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ts/
DInvalidStatements.ts113 /* @@? 20:1 Error SyntaxError: Missing catch or finally clause. */
114 /* @@? 21:9 Error SyntaxError: Expected a '{', got '('. */
115 /* @@? 24:8 Error SyntaxError: Unexpected token ')' in catch parameter. */
116 /* @@? 27:13 Error SyntaxError: Initializers are not allowed in ambient contexts. */
117 /* @@? 31:14 Error SyntaxError: abstract modifier can only appear on a class, struct, method, or pr…
118 /* @@? 35:12 Error SyntaxError: Only ambient modules can use quoted names */
119 /* @@? 35:22 Error SyntaxError: Unexpected token, expected: ';'. */
120 /* @@? 40:5 Error SyntaxError: Duplicated identifier */
121 /* @@? 44:37 Error SyntaxError: 'declare' modifier cannot appear on an index signature. */
122 /* @@? 46:5 Error SyntaxError: Decorators are not valid here. */
[all …]
/arkcompiler/runtime_core/libabckit/include/c/isa/
Disa_dynamic.h272 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is NULL.
273 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is not Intrinsic.
274 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if Intrinsic opcode is not GETMODULENAMESPACE or
284 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is NULL.
285 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `md` is NULL.
286 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is not Intrinsic.
287 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if Intrinsic opcode is not GETMODULENAMESPACE or
289 …* @note Set `ABCKIT_STATUS_WRONG_CTX` error if corresponding `AbckitFile`s owning `inst` and `md` …
297 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is NULL.
298 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if `inst` is not Intrinsic.
[all …]
/arkcompiler/ets_runtime/test/sharedtest/check/
Dsharedcheck.ts148 } catch (error) {
149 print("Fail to delete propNumber. err: " + error)
158 } catch (error) {
159 print("Fail to extend prop with defineProperty. err: " + error);
165 } catch (error) {
166 print("Fail to extend prop1 with defineProperty. err: " + error)
172 } catch (error) {
173 print("Fail to extend prop2 with defineProperties. err: " + error)
179 } catch (error) {
180 print("Fail to extend prop3 with stobjbyname. err: " + error)
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D12_errors.rst15 Error Handling
39 runtime error
50 - *Error* to denote runtime errors, and
68 runtime error
76 ``Error`` as predefined types are discussed below.
83 error
96 ``Error`` is the base class of all errors. Defining a new error class is
97 normally not required because essential error classes for various cases (e.g.,
101 However, a developer can define a new error by using ``Error``, or any
102 derived class as the base of the new class. An example of error handling is
[all …]
/arkcompiler/toolchain/tooling/base/
Dpt_params.cpp22 std::string error; in Create() local
30 error += "Wrong type of 'maxScriptsCacheSize';"; in Create()
46 error += "Wrong type of 'options';"; in Create()
49 if (!error.empty()) { in Create()
50 LOG_DEBUGGER(ERROR) << "EnableParams::Create " << error; in Create()
60 std::string error; in Create() local
67 error += "Failed to convert 'callFrameId' from string to int;"; in Create()
70 error += "Unknown or wrong type of 'callFrameId';"; in Create()
77 error += "Unknown or wrong type of 'expression';"; in Create()
84 error += "Wrong type of 'objectGroup';"; in Create()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/
Darray_native_test_2.cpp41 ets_error error = env_->ErrorOccurred(); in TEST_F() local
42 ASSERT_NE(error, nullptr); in TEST_F()
44 ASSERT_EQ(env_->IsInstanceOf(static_cast<ets_object>(error), errorClass), ETS_TRUE); in TEST_F()
49 ets_error error = env_->ErrorOccurred(); in TEST_F() local
50 ASSERT_NE(error, nullptr); in TEST_F()
52 ASSERT_EQ(env_->IsInstanceOf(static_cast<ets_object>(error), errorClass), ETS_TRUE); in TEST_F()
57 ets_error error = env_->ErrorOccurred(); in TEST_F() local
58 ASSERT_NE(error, nullptr); in TEST_F()
60 ASSERT_EQ(env_->IsInstanceOf(static_cast<ets_object>(error), errorClass), ETS_TRUE); in TEST_F()
76 ets_error error = env_->ErrorOccurred(); in TEST_F() local
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/sts_ts_subset/std/core/
DPromiseAllSettledPoisonedIterator.sts17 constructor(error: Error) {
18 this.error = error;
22 throw this.error;
25 private error: Error;
29 constructor(error: Error) {
30 this.error = error;
34 return new PoisonedIterator<T>(this.error);
37 private error: Error;
40 let error = new Error();
41 Promise.allSettled<Object>(new MyIterable<Object>(error)).then<void, void>((value: PromiseSettledRe…
[all …]
DPromiseRacePoisonedIterator.sts16 constructor(err: Error) {
17 this.error = err;
21 throw this.error;
24 private error: Error;
28 constructor(err: Error) {
29 this.error = err;
33 return new PoisonedIterator<T>(this.error);
36 private error: Error;
39 let error = new Error();
40 Promise.race<Object>(new MyIterable<Object>(error)).then<void, void>((value: Object): void => {
[all …]
/arkcompiler/ets_frontend/arkguard/test/
D.eslintrc.json22 "prefer-const": "error",
26 "indent": ["error", 2, { "SwitchCase": 1 }],
27 "no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1, "maxBOF": 0 }],
28 "dot-location": ["error", "property"],
29 "brace-style": ["error", "1tbs", { "allowSingleLine": true }],
30 "keyword-spacing": ["error", { "before": true, "after": true }],
31 "space-before-blocks": ["error", "always"],
32 "space-infix-ops": ["error"],
33 "space-in-parens": ["error", "never"],
34 "array-bracket-spacing": ["error", "never"],
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/models/
Dcode.test.ts23 compile: { output: 'compile output', error: 'compile error', exit_code: 1 },
24 …disassembly: { output: 'disasm output', code: 'disasm code', error: 'disasm error', exit_code: 2 },
30 compile: { output: 'compile output', error: 'compile error', exit_code: 1 },
31 …disassembly: { output: 'disasm output', code: 'disasm code', error: 'disasm error', exit_code: 2 },
40 compile: { output: '', error: '', exit_code: -1 },
41 disassembly: { output: '', code: '', error: '', exit_code: -1 },
49 compile: { output: 'compile output', error: 'compile error', exit_code: 1 },
50 …disassembly: { output: 'disasm output', code: 'disasm code', error: 'disasm error', exit_code: 2 },
51 run: { output: 'run output', error: 'run error', exit_code: 3 },
57 compile: { output: 'compile output', error: 'compile error', exit_code: 1 },
[all …]
/arkcompiler/runtime_core/libabckit/src/include_v2/c/isa/
Disa_static.h140 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *inst is NULL.
149 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *inst is NULL.
150 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitCoreClass *klass is NULL.
158 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *inst is NULL.
167 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *inst is NULL.
175 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *inst is NULL.
185 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *inst is NULL.
194 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *inst is NULL.
204 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitGraph *graph is NULL.
205 * @note Set `ABCKIT_STATUS_BAD_ARGUMENT` error if AbckitInst *input0 is NULL.
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DErrors.sts19 * @class Represents an error that occurs when assertion fails.
21 export class AssertionError extends Error {
34 * @class Represents an error that occurs when division by zero is performed.
36 export class DivideByZeroError extends Error {
43 * @class Represents an error that occurs when null pointer is dereferenced.
45 export class NullPointerError extends Error {
52 * @class Represents an error that occurs when exception is thrown and not catched
54 export class UncatchedExceptionError extends Error {
61 * @class Represents an error that occurs when trying to interpret syntactically invalid code
63 export class SyntaxError extends Error {
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/implicit_package_import/package_test_5/
Dpackage_module_2_neg.sts20 this file will contain parse error, but compilation of 'package_module_1' is not aborted, file is j…
22 /* @@? 20:6 Error SyntaxError: Unexpected token 'identification literal'. */
23 /* @@? 20:11 Error SyntaxError: Unexpected token 'identification literal'. */
24 /* @@? 20:16 Error SyntaxError: Unexpected token 'identification literal'. */
25 /* @@? 20:24 Error SyntaxError: Unexpected token 'identification literal'. */
26 /* @@? 20:30 Error SyntaxError: Unexpected token 'identification literal'. */
27 /* @@? 20:35 Error SyntaxError: Unexpected token ','. */
28 /* @@? 20:35 Error SyntaxError: Unexpected token ','. */
29 /* @@? 20:41 Error SyntaxError: Unexpected token 'identification literal'. */
30 /* @@? 20:53 Error SyntaxError: Unexpected token 'identification literal'. */
[all …]

12345678910>>...179