1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/js1_8_1/strict/8.7.2.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +// |reftest| skip-if(Android) 1.5 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.6 + 1.7 +/* 1.8 + * Any copyright is dedicated to the Public Domain. 1.9 + * http://creativecommons.org/licenses/publicdomain/ 1.10 + */ 1.11 + 1.12 +/* Check that assignment to a let-bound variable is permitted in both lenient and strict modes. */ 1.13 + 1.14 +/* Assigning to a let-declared variable is okay in strict and loose modes. */ 1.15 +assertEq(testLenientAndStrict('let let_declared; let_declared=1', 1.16 + completesNormally, 1.17 + completesNormally), 1.18 + true); 1.19 + 1.20 +reportCompare(true, true);