| Index: test/codegen/expect/try_catch.js
|
| diff --git a/test/codegen/expect/try_catch.js b/test/codegen/expect/try_catch.js
|
| index eeb4d51ab9e4505034ed915b34dab541fab6e946..87c956b025add408405dd8ef51bc6dc4af2c7a85 100644
|
| --- a/test/codegen/expect/try_catch.js
|
| +++ b/test/codegen/expect/try_catch.js
|
| @@ -7,7 +7,7 @@ dart_library.library('try_catch', null, /* Imports */[
|
| let dartx = dart.dartx;
|
| function foo() {
|
| try {
|
| - throw "hi there";
|
| + dart.throw_("hi there");
|
| } catch (e$) {
|
| if (dart.is(e$, core.String)) {
|
| let e = e$;
|
| @@ -15,7 +15,7 @@ dart_library.library('try_catch', null, /* Imports */[
|
| } else {
|
| let e = e$;
|
| let t = dart.stackTrace(e);
|
| - throw e;
|
| + dart.rethrow(e);
|
| }
|
| }
|
|
|
| @@ -23,7 +23,7 @@ dart_library.library('try_catch', null, /* Imports */[
|
| dart.fn(foo);
|
| function bar() {
|
| try {
|
| - throw "hi there";
|
| + dart.throw_("hi there");
|
| } catch (e$) {
|
| let e = e$;
|
| let t = dart.stackTrace(e);
|
| @@ -33,7 +33,7 @@ dart_library.library('try_catch', null, /* Imports */[
|
| dart.fn(bar);
|
| function baz() {
|
| try {
|
| - throw "finally only";
|
| + dart.throw_("finally only");
|
| } finally {
|
| return true;
|
| }
|
| @@ -41,24 +41,24 @@ dart_library.library('try_catch', null, /* Imports */[
|
| dart.fn(baz);
|
| function qux() {
|
| try {
|
| - throw "on only";
|
| + dart.throw_("on only");
|
| } catch (e) {
|
| if (dart.is(e, core.String)) {
|
| let t = dart.stackTrace(e);
|
| - throw e;
|
| + dart.rethrow(e);
|
| } else
|
| - throw e;
|
| + dart.rethrow(e);
|
| }
|
|
|
| }
|
| dart.fn(qux);
|
| function wub() {
|
| try {
|
| - throw "on without exception parameter";
|
| + dart.throw_("on without exception parameter");
|
| } catch (e) {
|
| if (dart.is(e, core.String)) {
|
| } else
|
| - throw e;
|
| + dart.rethrow(e);
|
| }
|
|
|
| }
|
|
|