mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
18afa9f743
commit
ad719a55e1
@ -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); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user