| Index: test/codegen/expect/language/try_catch_on_syntax_test_none_multi.js
|
| diff --git a/test/codegen/expect/language/try_catch_on_syntax_test_none_multi.js b/test/codegen/expect/language/try_catch_on_syntax_test_none_multi.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d9016e8f0484ed3541eab315f9679c2b9d742b86
|
| --- /dev/null
|
| +++ b/test/codegen/expect/language/try_catch_on_syntax_test_none_multi.js
|
| @@ -0,0 +1,55 @@
|
| +dart_library.library('language/try_catch_on_syntax_test_none_multi', null, /* Imports */[
|
| + 'dart_sdk',
|
| + 'expect'
|
| +], function load__try_catch_on_syntax_test_none_multi(exports, dart_sdk, expect) {
|
| + 'use strict';
|
| + const core = dart_sdk.core;
|
| + const dart = dart_sdk.dart;
|
| + const dartx = dart_sdk.dartx;
|
| + const expect$ = expect.expect;
|
| + const try_catch_on_syntax_test_none_multi = Object.create(null);
|
| + let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
|
| + let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
|
| + try_catch_on_syntax_test_none_multi.MyException = class MyException extends core.Object {};
|
| + try_catch_on_syntax_test_none_multi.MyException1 = class MyException1 extends try_catch_on_syntax_test_none_multi.MyException {};
|
| + try_catch_on_syntax_test_none_multi.MyException2 = class MyException2 extends try_catch_on_syntax_test_none_multi.MyException {};
|
| + try_catch_on_syntax_test_none_multi.test1 = function() {
|
| + let foo = 0;
|
| + try {
|
| + dart.throw(new try_catch_on_syntax_test_none_multi.MyException1());
|
| + } catch (e$) {
|
| + if (try_catch_on_syntax_test_none_multi.MyException2.is(e$)) {
|
| + let e = e$;
|
| + foo = 1;
|
| + } else if (try_catch_on_syntax_test_none_multi.MyException1.is(e$)) {
|
| + let e = e$;
|
| + foo = 2;
|
| + } else if (try_catch_on_syntax_test_none_multi.MyException.is(e$)) {
|
| + let e = e$;
|
| + foo = 3;
|
| + } else {
|
| + let e = e$;
|
| + foo = 4;
|
| + }
|
| + }
|
| +
|
| + expect$.Expect.equals(2, foo);
|
| + };
|
| + dart.fn(try_catch_on_syntax_test_none_multi.test1, VoidTovoid());
|
| + try_catch_on_syntax_test_none_multi.testFinal = function() {
|
| + try {
|
| + dart.throw("catch this!");
|
| + } catch (e) {
|
| + let s = dart.stackTrace(e);
|
| + }
|
| +
|
| + };
|
| + dart.fn(try_catch_on_syntax_test_none_multi.testFinal, VoidTodynamic());
|
| + try_catch_on_syntax_test_none_multi.main = function() {
|
| + try_catch_on_syntax_test_none_multi.test1();
|
| + try_catch_on_syntax_test_none_multi.testFinal();
|
| + };
|
| + dart.fn(try_catch_on_syntax_test_none_multi.main, VoidTodynamic());
|
| + // Exports:
|
| + exports.try_catch_on_syntax_test_none_multi = try_catch_on_syntax_test_none_multi;
|
| +});
|
|
|