Source code

Revision control

Copy as Markdown

Other Tools

/*
* Any copyright is dedicated to the Public Domain.
*/
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");