test/script/basic/es6/let-load.js

Print this page

        

@@ -38,26 +38,23 @@
     const c = 30;
     print("print local defs: " + a, c);
 }
 
 print("imported var: " + a);
-try {
-    print("imported let: " + b);
-} catch (e) {
-    print(e);
-}
+print("imported let: " + b);
+print("imported const: " + c);
+
+top();
 
 try {
-    print("imported const: " + c);
+    block();
 } catch (e) {
     print(e);
 }
 
-top();
-
 try {
-    block();
+    c = "foo";
 } catch (e) {
     print(e);
 }