Home
last modified time | relevance | path

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

12345678910>>...48

/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/
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}`;
Dcatch_clause.ts.json22 … "rule": "\"throw\" statements cannot accept values of arbitrary types (arkts-limited-throw)"
43 … "rule": "\"throw\" statements cannot accept values of arbitrary types (arkts-limited-throw)"
64 … "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/ts/branch-elimination/projects/ts_ohmurl_project/
Dtest-import-exec-expected.pa.txt98 throw.undefinedifholewithname CONST_INT
100 throw.undefinedifholewithname CONST_DOUBLE
102 throw.undefinedifholewithname CONST_BOOL
104 throw.undefinedifholewithname CONST_BOOL
106 throw.undefinedifholewithname CONST_STRING
144 throw.undefinedifholewithname BUNDLE_FILE_TYPE
146 throw.undefinedifholewithname PACKAGE_FILE_TYPE
148 throw.undefinedifholewithname NORMALIZED_FILE_TYPE_1
150 throw.undefinedifholewithname NORMALIZED_FILE_TYPE_2
152 throw.undefinedifholewithname NORMALIZED_FILE_TYPE_3
[all …]
/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() }
31 constructor(p: A) throws { if (p instanceof Error) throw new Ex() }
42 constructor(p: A|string) throws { if (p instanceof A) throw new Ex() }
58 constructor(p: byte) throws { if (p == 0) throw ex; else this.t = "byte" }
61 constructor(p: Short) throws { if (p == 0) throw ex; else this.t = "Short" }
62 constructor(p: int) throws { if (p == 0) throw ex; else this.t = "int" }
65 constructor(p: Long) throws { if (p == 0) throw ex; else this.t = "Long" }
66 constructor(p: char) throws { if (p == 0) throw ex; else this.t = "char" }
70 constructor(p: float) throws { if (p == 0) throw ex; else this.t = "float" }
73 constructor(p: Double) throws { if (p == 0) throw ex; else this.t = "Double" }
[all …]
/arkcompiler/ets_frontend/es2panda/test/bytecode/js/destructuring/
Dtest-array-pattern-iterator-close-expected.txt30 throw.ifnotobject v8
65 throw
80 throw.ifnotobject v1
115 throw
165 throw
167 throw.ifnotobject v1
200 throw
203 throw
206 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/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.txt8 throw.undefinedifholewithname a
25 throw.undefinedifholewithname a
36 throw.undefinedifholewithname a
47 throw.undefinedifholewithname a
64 throw.undefinedifholewithname a
82 throw.undefinedifholewithname a
93 throw.undefinedifholewithname a
110 throw.undefinedifholewithname a
122 throw.undefinedifholewithname a
/arkcompiler/ets_frontend/es2panda/test/optimizer/js/opt-try-catch-func/
Dtest-raw-try-catch-expected.pa.txt28 throw
45 throw
62 throw
71 throw
111 throw
124 throw
148 throw
155 throw
178 throw
192 throw
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/08.statements/15.try_statements/02.finally_clause/
Dfinally.params.yaml19 if (t1 != t2) throw new Er()
29 if (t1 == t2) throw new Er()
41 if (t1 == t2) throw new Er()
52 if (t1 != t2) throw new Er()
65 if (t1 != t2) throw new Er()
90 if (t1 != t2) throw new Er2()
117 if (t1 != t2) throw new Er2()
121 throw e as Error
146 if (t1 != t2) throw new Er()
153 throw er! as Error
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/gc/
Dpin_object.sts58 assert detected == true: "GC.pinObject must throw NullPointerError for null object";
69 assert detected == true: "GC.unpinObject must throw NullPointerError for null object";
80 assert detected == 1: "Boolean array pinning must throw NegativeArraySizeError";
87 assert detected == 2: "Byte array pinning must throw NegativeArraySizeError";
94 assert detected == 3: "Char array pinning must throw NegativeArraySizeError";
101 assert detected == 4: "Short array pinning must throw NegativeArraySizeError";
108 assert detected == 5: "Int array pinning must throw NegativeArraySizeError";
115 assert detected == 6: "Long array pinning must throw NegativeArraySizeError";
122 assert detected == 7: "Float array pinning must throw NegativeArraySizeError";
129 assert detected == 8: "Double array pinning must throw NegativeArraySizeError";
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dets_try_catch6.sts21 //! INST_COUNT "Throw",3
23 //! INST_NOT "Throw"
30 //! INST_COUNT "Throw",3
32 //! INST_COUNT "Throw",3
47 throw new Exception0();
49 throw new Exception1();
51 throw new Exception2();
Dets_try_catch3.sts21 //! INST_COUNT "Throw",3
23 //! INST_NOT "Throw"
30 //! INST_COUNT "Throw",3
32 //! INST_COUNT "Throw",3
46 throw new Exception0();
48 throw new Exception1();
50 throw new Exception2();
/arkcompiler/ets_frontend/es2panda/test/optimizer/ts/branch-elimination/projects/ts_module_syntax_project/
Dtest-import-syntax-exec-expected.pa.txt118 throw.undefinedifholewithname v4
120 throw.undefinedifholewithname v5
122 throw.undefinedifholewithname v7
124 throw.undefinedifholewithname v8
127 throw.undefinedifholewithname v1
141 throw.undefinedifholewithname v2
155 throw.undefinedifholewithname v3
169 throw.undefinedifholewithname v6
183 throw.undefinedifholewithname v9
197 throw.undefinedifholewithname v10
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/napi/sampler/
DSamplerNapiTest.sts22 // throw new Exception("ERROR: CallNativeSlowFunction worked wrong");
28 // throw new Exception("ERROR: CallNativeFastFunction worked wrong");
34 // throw new Exception("ERROR: CallNativeNAPISlowFunction worked wrong");
40 // throw new Exception("ERROR: CallNativeNAPIFastFunction worked wrong");
54 // throw new Exception("ERROR: CallNativeSlowFunction worked wrong");
60 // throw new Exception("ERROR: CallNativeFastFunction worked wrong");
66 // throw new Exception("ERROR: CallNativeNAPISlowFunction worked wrong");
72 // throw new Exception("ERROR: CallNativeNAPIFastFunction worked wrong");

12345678910>>...48