Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /*
2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/licenses/publicdomain/
4 */
5 var expect = '';
6 var actual = '';
8 function test(s) {
9 var threw = false;
10 try {
11 eval(s);
12 } catch (e) {
13 assertEq(e.message.indexOf('(intermediate value)'), -1);
14 threw = true;
15 } finally {
16 assertEq(threw, true);
17 }
18 }
20 test("({p:1, q:2}).m()");
21 test("[].m()");
22 test("[1,2,3].m()");
23 test("/hi/.m()");
25 reportCompare(0, 0, "ok");