Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1247)

Unified Diff: test/codegen/expect/try_catch.js

Issue 1233553005: Fixes #254 - Better stacktrace support (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: format fix Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/expect/expect.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f1e444009c45e3a0b4e1fe9d88f493943c415a4b 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$;
@@ -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,7 +41,7 @@ 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);
@@ -54,7 +54,7 @@ dart_library.library('try_catch', null, /* Imports */[
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
« no previous file with comments | « test/codegen/expect/expect.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698