summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/regress/regress-810525.js
blob: 520ca413e82308df6c79f3a0d9dcf31f730dcaac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */
var expect = '';
var actual = '';

function test(s) {
    var threw = false;
    try {
        eval(s);
    } catch (e) {
        assertEq(e.message.indexOf('(intermediate value)'), -1);
        threw = true;
    } finally {
        assertEq(threw, true);
    }
}

test("({p:1, q:2}).m()");
test("[].m()");
test("[1,2,3].m()");
test("/hi/.m()");

reportCompare(0, 0, "ok");