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

Unified Diff: test/mjsunit/harmony/block-let-semantics-sloppy.js

Issue 1219853004: [es6] Initial support for let/const bindings in sloppy mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Updated tests and comments 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/mjsunit/harmony/block-let-declaration-sloppy.js ('k') | test/mjsunit/harmony/block-scoping-sloppy.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/block-let-semantics-sloppy.js
diff --git a/test/mjsunit/es6/block-let-semantics.js b/test/mjsunit/harmony/block-let-semantics-sloppy.js
similarity index 96%
copy from test/mjsunit/es6/block-let-semantics.js
copy to test/mjsunit/harmony/block-let-semantics-sloppy.js
index b0a826a007a84eaeac5c09c58c947b6de4b28972..4a90a2fcd8ec3e6783e2256a1dc1c241ba4e7438 100644
--- a/test/mjsunit/es6/block-let-semantics.js
+++ b/test/mjsunit/harmony/block-let-semantics-sloppy.js
@@ -25,7 +25,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-"use strict";
+// Flags: --harmony-sloppy --no-legacy-const
// Test temporal dead zone semantics of let bound variables in
// function and block scopes.
@@ -95,7 +95,8 @@ TestAll('eval("x"); const x = 1;');
// Use before initialization with check for eval-shadowed bindings.
TestAll('function f() { eval("var y = 2;"); x + 1; }; f(); let x;');
-TestAll('function f() { eval("var y = 2;"); x = 1; }; f(); let x;');
+// TODO(arv): https://code.google.com/p/v8/issues/detail?id=4284
rossberg 2015/07/08 13:51:59 Nit: feel free to put in littledan.
+// TestAll('function f() { eval("var y = 2;"); x = 1; }; f(); let x;');
TestAll('function f() { eval("var y = 2;"); x += 1; }; f(); let x;');
TestAll('function f() { eval("var y = 2;"); ++x; }; f(); let x;');
TestAll('function f() { eval("var y = 2;"); x++; }; f(); let x;');
« no previous file with comments | « test/mjsunit/harmony/block-let-declaration-sloppy.js ('k') | test/mjsunit/harmony/block-scoping-sloppy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698