1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/ecma_5/strict/15.5.5.2.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 + 1.6 +/* 1.7 + * Any copyright is dedicated to the Public Domain. 1.8 + * http://creativecommons.org/licenses/publicdomain/ 1.9 + */ 1.10 + 1.11 +assertEq(testLenientAndStrict('"foo"[0] = 1', 1.12 + returns(1), raisesException(TypeError)), 1.13 + true); 1.14 +assertEq(testLenientAndStrict('delete "foo"[0]', 1.15 + returns(false), raisesException(TypeError)), 1.16 + true); 1.17 + 1.18 +reportCompare(true, true);