The test for bug 352455 is bogus, a regexp is a callable object and thus can be a getter (bug 547912 changed this behavior).

This commit is contained in:
Andreas Gal 2010-02-23 02:46:46 -08:00
parent 18afa9f743
commit ad719a55e1

View File

@ -57,7 +57,7 @@ function test()
expect = 'SyntaxError: invalid getter usage';
z = ({});
try { eval('z.x getter= /g/i;'); } catch(ex) { actual = ex + '';}
try { eval('z.x getter= 5;'); } catch(ex) { actual = ex + '';}
print("This line should not be the last output you see.");
try { print(uneval(z)); } catch(e) { print("Threw!"); print(e); }