changeset 27817 | 56f6161c3e55 |
parent 27814 | 96427359f4fe |
--- a/nashorn/test/script/basic/es6/let-load.js Thu Nov 27 17:14:01 2014 +0400 +++ b/nashorn/test/script/basic/es6/let-load.js Thu Nov 27 16:42:53 2014 +0100 @@ -40,17 +40,8 @@ } print("imported var: " + a); -try { - print("imported let: " + b); -} catch (e) { - print(e); -} - -try { - print("imported const: " + c); -} catch (e) { - print(e); -} +print("imported let: " + b); +print("imported const: " + c); top(); @@ -60,4 +51,10 @@ print(e); } +try { + c = "foo"; +} catch (e) { + print(e); +} +