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

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

Issue 998043002: Fixes in codegen and test script (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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
Index: test/codegen/expect/try_catch.js
diff --git a/test/codegen/expect/try_catch.js b/test/codegen/expect/try_catch.js
new file mode 100644
index 0000000000000000000000000000000000000000..9ad17ef3a632d4cf824bc6822f71f2858da271ae
--- /dev/null
+++ b/test/codegen/expect/try_catch.js
@@ -0,0 +1,21 @@
+var try_catch;
+(function(exports) {
+ 'use strict';
+ // Function main: () → dynamic
+ function main() {
+ try {
+ throw "hi there";
+ } catch ($e) {
+ if (dart.is($e, core.String)) {
+ let e = $e;
+ let t = dart.stackTrace(e);
+ }
+ let e = $e;
+ let t = dart.stackTrace(e);
+ throw e;
+ }
+
+ }
+ // Exports:
+ exports.main = main;
+})(try_catch || (try_catch = {}));

Powered by Google App Engine
This is Rietveld 408576698