summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/strict/15.5.5.2.js
blob: fa2c9231f19da8c793244dc32d61cc9b1c26e297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */

/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */

assertEq(testLenientAndStrict('"foo"[0] = 1',
                              returns(1), raisesException(TypeError)),
         true);
assertEq(testLenientAndStrict('delete "foo"[0]',
                              returns(false), raisesException(TypeError)),
         true);

reportCompare(true, true);