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;'); |