Chromium Code Reviews| 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;'); |