Home
last modified time | relevance | path

Searched full:throw (Results 1 – 25 of 1378) sorted by relevance

12345678910>>...56

/arkcompiler/ets_frontend/es2panda/test/parser/js/
Dtest-throw-statement.js17 throw 123
18 throw 123;
19 throw ''
20 throw '';
21 throw ""
22 throw "";
23 throw undefined
24 throw undefined;
25 throw null
26 throw null;
[all …]
/arkcompiler/ets_frontend/ets2panda/test/parser/js/
Dtest-throw-statement.js17 throw 123
18 throw 123;
19 throw ''
20 throw '';
21 throw ""
22 throw "";
23 throw undefined
24 throw undefined;
25 throw null
26 throw null;
[all …]
/arkcompiler/ets_runtime/test/aottest/throw/
Dthrow.ts18 throw "Throw Test";
25 throw 123;
31 // throw an exception when superCall case1: supercallspread
41 throw new testError(message);
44 let thrown1 = new testError("throw from A1");
49 throw thrown1;
68 // throw an exception when superCall case2: supercallthisrange
69 let thrown2 = new testError("throw from A2");
73 throw thrown2;
93 //aot: when open inline mode, internal error should be throw correctly
[all …]
Dexpect_output.txt14 Throw Test
16 testError: throw from A1
17 testError: throw from A1
18 testError: throw from A2
19 testError: throw from A2
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/06.statements/02.multiple_catch_clauses_in_try_statements/
Dcatch2.sts51 throw new Ex("0");
54 throw new F("1", e);
57 throw new Ex("2", f);
60 throw new F("3", e);
63 throw new Ex("4", f);
66 throw new F("5", e);
69 throw new Ex("6", f);
72 throw new F("7", e);
75 throw new Ex("8", f);
78 throw new F("9", e);
[all …]
Dfinally.params.yaml20 if (t1 == t2) throw new Ex()
34 if (t1 == t2) throw new Ex()
47 if (t1 != t2) throw new Ex()
62 if (t1 != t2) throw new Ex()
90 if (t1 != t2) throw new Er()
119 if (t1 != t2) throw new Ex()
149 if (t1 != t2) throw new Er2()
180 if (t1 != t2) throw new Ex()
186 throw e
209 if (t1 != t2) throw new Er2()
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/
Drecipe87.md1 # ``throw`` statements cannot accept values of arbitrary types
3 Rule ``arkts-limited-throw``
17 throw 4
18 throw ""
19 throw new Error()
28 throw new Error()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/coroutines/
Dlaunch_instruction.sts25 throw new Error();
37 throw new Error();
46 throw new Error();
50 throw new Error();
59 throw new Error();
63 throw new Error();
67 throw new Error();
76 throw new Error();
80 throw new Error();
84 throw new Error();
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dthrow_error.sts36 throw new A1();
37 throw new A11();
39 throw new A2();
40 throw new A22();
42 throw "Error";
43 throw "Error";
44 throw `Error${a}`;
Dthrow_error.ts.json24 … "rule": "\"throw\" statements cannot accept values of arbitrary types (arkts-limited-throw)",
34 … "rule": "\"throw\" statements cannot accept values of arbitrary types (arkts-limited-throw)",
44 … "rule": "\"throw\" statements cannot accept values of arbitrary types (arkts-limited-throw)",
/arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/
Dthrow.yaml23 - file-name: "throw"
25 title: Throw exception
26 description: Throw an exception located in register.
28 - sig: throw v:in:ref
38 - sig: throw v:in:ref
48 throw %s
57 - values: ['throw']
67 - sig: throw v:in:ref
78 throw %s
88 - sig: throw v:in:ref
[all …]
/arkcompiler/ets_frontend/es2panda/test/optimizer/js/unused-inst-opt/
Dunused-ldhole-expected.pa.txt28 throw.ifnotobject v8
60 throw
72 throw.ifnotobject v1
99 throw
144 throw
146 throw.ifnotobject v1
175 throw
178 throw
181 throw
/arkcompiler/ets_frontend/es2panda/test/version_control/API12beta1_and_beta2/bytecode_feature/
Dwide_sendable_lexical_env_supported_compile_for_below_API12beta3_asm_version-expected.txt8 throw.undefinedifholewithname TopLevelSendableClass1
14 throw.undefinedifholewithname TopLevelSendableClass2
20 throw.undefinedifholewithname TopLevelSendableClass3
26 throw.undefinedifholewithname TopLevelSendableClass4
32 throw.undefinedifholewithname TopLevelSendableClass5
38 throw.undefinedifholewithname TopLevelSendableClass6
44 throw.undefinedifholewithname TopLevelSendableClass7
50 throw.undefinedifholewithname TopLevelSendableClass8
56 throw.undefinedifholewithname TopLevelSendableClass9
62 throw.undefinedifholewithname TopLevelSendableClass10
[all …]
Dwide_sendable_lexical_env_unsupported_compile_for_below_API12beta3_asm_version-expected.txt8 throw.undefinedifholewithname TopLevelSendableClass1
14 throw.undefinedifholewithname TopLevelSendableClass2
20 throw.undefinedifholewithname TopLevelSendableClass3
26 throw.undefinedifholewithname TopLevelSendableClass4
32 throw.undefinedifholewithname TopLevelSendableClass5
38 throw.undefinedifholewithname TopLevelSendableClass6
44 throw.undefinedifholewithname TopLevelSendableClass7
50 throw.undefinedifholewithname TopLevelSendableClass8
56 throw.undefinedifholewithname TopLevelSendableClass9
62 throw.undefinedifholewithname TopLevelSendableClass10
[all …]
Dwide_sendable_lexical_env_supported_compile_for_higher_or_equal_to_API16beta3_asm_version-expected.txt2814 throw.undefinedifholewithname TopLevelSendableClass1
2820 throw.undefinedifholewithname TopLevelSendableClass2
2826 throw.undefinedifholewithname TopLevelSendableClass3
2832 throw.undefinedifholewithname TopLevelSendableClass4
2838 throw.undefinedifholewithname TopLevelSendableClass5
2844 throw.undefinedifholewithname TopLevelSendableClass6
2850 throw.undefinedifholewithname TopLevelSendableClass7
2856 throw.undefinedifholewithname TopLevelSendableClass8
2862 throw.undefinedifholewithname TopLevelSendableClass9
2868 throw.undefinedifholewithname TopLevelSendableClass10
[all …]
Dwide_sendable_lexical_env_unsupported_compile_for_below_API11_asm_version-expected.txt8 throw.undefinedifholewithname TopLevelSendableClass1
14 throw.undefinedifholewithname TopLevelSendableClass2
20 throw.undefinedifholewithname TopLevelSendableClass3
26 throw.undefinedifholewithname TopLevelSendableClass4
32 throw.undefinedifholewithname TopLevelSendableClass5
38 throw.undefinedifholewithname TopLevelSendableClass6
44 throw.undefinedifholewithname TopLevelSendableClass7
50 throw.undefinedifholewithname TopLevelSendableClass8
56 throw.undefinedifholewithname TopLevelSendableClass9
62 throw.undefinedifholewithname TopLevelSendableClass10
[all …]
Dwide_sendable_lexical_env_supported_compile_for_higher_or_equal_to_API12beta3_asm_version-expected.txt3068 throw.undefinedifholewithname TopLevelSendableClass1
3074 throw.undefinedifholewithname TopLevelSendableClass2
3080 throw.undefinedifholewithname TopLevelSendableClass3
3086 throw.undefinedifholewithname TopLevelSendableClass4
3092 throw.undefinedifholewithname TopLevelSendableClass5
3098 throw.undefinedifholewithname TopLevelSendableClass6
3104 throw.undefinedifholewithname TopLevelSendableClass7
3110 throw.undefinedifholewithname TopLevelSendableClass8
3116 throw.undefinedifholewithname TopLevelSendableClass9
3122 throw.undefinedifholewithname TopLevelSendableClass10
[all …]
/arkcompiler/ets_frontend/es2panda/test/optimizer/ts/branch-elimination/projects/ts_ohmurl_project/
Dtest-import-exec-expected.pa.txt87 throw.undefinedifholewithname CONST_INT
89 throw.undefinedifholewithname CONST_DOUBLE
91 throw.undefinedifholewithname CONST_BOOL
93 throw.undefinedifholewithname CONST_BOOL
95 throw.undefinedifholewithname CONST_STRING
131 throw.undefinedifholewithname BUNDLE_FILE_TYPE
133 throw.undefinedifholewithname PACKAGE_FILE_TYPE
135 throw.undefinedifholewithname NORMALIZED_FILE_TYPE_1
137 throw.undefinedifholewithname NORMALIZED_FILE_TYPE_2
139 throw.undefinedifholewithname NORMALIZED_FILE_TYPE_3
[all …]
/arkcompiler/ets_frontend/es2panda/test/bytecode/js/destructuring/
Dtest-array-pattern-iterator-close-expected.txt28 throw.ifnotobject v8
60 throw
75 throw.ifnotobject v1
107 throw
156 throw
158 throw.ifnotobject v1
187 throw
190 throw
193 throw
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/08.statements/14.throw_statements/
Dthrow_neg.params.yaml19 if (p == 1) throw new Exception();
29 if (p == 1) throw new Exception();
42 if (p == 1) throw new Exception();
51 if (p == 1) throw new Exception();
63 if (p == 1) throw new Exception();
69 # not an exception class in throw
75 throw p;
82 throw new Object();
Dthrow.params.yaml21 if (t1 != t2) throw p as Exception;
37 if (t1 != t2) throw p as Exception;
51 if (t1 != t2) throw new Ex();
62 if (t1 != t2) throw new Ex();
79 if (t1 != t2) throw new Ex();
86 throw e;
108 throw f;
115 throw e;
117 throw p;
140 throw p;
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/07.function_and_method_overloading/03.constructor_overloading/
Dco2_over.params.yaml20 constructor(p: number) throws { if (p < 0) throw new Ex() }
30 constructor(p: Number) throws { if (p < 0) throw new Ex() }
40 constructor(p: string) throws { if (p < 0) throw new Ex() }
51 constructor(p: A) throws { if (p instanceof Error) throw new Ex() }
62 constructor(p: A|string) throws { if (p instanceof A) throw new Ex() }
78 constructor(p: byte) throws { if (p == 0) throw ex; else this.t = "byte" }
81 constructor(p: Short) throws { if (p == 0) throw ex; else this.t = "Short" }
82 constructor(p: int) throws { if (p == 0) throw ex; else this.t = "int" }
85 constructor(p: Long) throws { if (p == 0) throw ex; else this.t = "Long" }
86 constructor(p: char) throws { if (p == 0) throw ex; else this.t = "char" }
[all …]
/arkcompiler/ets_runtime/test/aottest/array_inline_exception/
Darray_inline_exception.ts25 arr.forEach(() => {throw new Error('exception')})
30 arr.find(() => { throw new Error('exception')})
35 arr.findIndex(() => { throw new Error('exception')})
41 arr.filter(() => { throw new Error('exception')})
47 arr.map(() => { throw new Error('exception')})
53 arr.some(() => { throw new Error('exception')})
59 arr.every(() => { throw new Error('exception')})
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dthrow.yaml35 - file-name: "throw"
37 title: Throw exception
38 description: Throw an exception located in register.
40 - sig: throw v:in:ref
51 - sig: throw v:in:ref
62 throw %s
71 - values: ['throw']
81 - sig: throw v:in:ref
93 throw %s
104 - sig: throw v:in:ref
[all …]
/arkcompiler/ets_frontend/es2panda/test/bytecode/ts/api12/sendable-class/
Dsendable-using-module-var-expected.txt7 throw.undefinedifholewithname a
25 throw.undefinedifholewithname a
37 throw.undefinedifholewithname a
48 throw.undefinedifholewithname a
65 throw.undefinedifholewithname a
83 throw.undefinedifholewithname a
94 throw.undefinedifholewithname a
112 throw.undefinedifholewithname a
124 throw.undefinedifholewithname a

12345678910>>...56