michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: */ michael@0: var expect = ''; michael@0: var actual = ''; michael@0: michael@0: function test(s) { michael@0: var threw = false; michael@0: try { michael@0: eval(s); michael@0: } catch (e) { michael@0: assertEq(e.message.indexOf('(intermediate value)'), -1); michael@0: threw = true; michael@0: } finally { michael@0: assertEq(threw, true); michael@0: } michael@0: } michael@0: michael@0: test("({p:1, q:2}).m()"); michael@0: test("[].m()"); michael@0: test("[1,2,3].m()"); michael@0: test("/hi/.m()"); michael@0: michael@0: reportCompare(0, 0, "ok");