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

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: Cleanup 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
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 97%
copy from test/mjsunit/es6/block-let-semantics.js
copy to test/mjsunit/harmony/block-let-semantics-sloppy.js
index b0a826a007a84eaeac5c09c58c947b6de4b28972..653c8023dc60abb16670ae6654bb23d228d0d92d 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,7 @@ 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;');
+// TestAll('function f() { eval("var y = 2;"); x = 1; }; f(); let x;');
rossberg 2015/07/08 11:49:56 Can you add a TODO explaining why this is commente
arv (Not doing code reviews) 2015/07/08 13:43:45 Done.
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;');

Powered by Google App Engine
This is Rietveld 408576698