Index: test/mjsunit/regress/regress-1583.js |
diff --git a/test/mjsunit/regress/regress-1583.js b/test/mjsunit/regress/regress-1583.js |
index 484955524c24c58952ebffce995f6e041883f83d..c4a344ccf8970b183ca99a6edec992069144b438 100644 |
--- a/test/mjsunit/regress/regress-1583.js |
+++ b/test/mjsunit/regress/regress-1583.js |
@@ -48,3 +48,10 @@ assertEquals('hest', o.m()); |
assertEquals('hest', o.m()); |
%OptimizeFunctionOnNextCall(o.m); |
assertEquals('hest', o.m()); |
+ |
+// Fixing the bug above introduced (revealed?) an inconsistency in named |
+// getters and setters. The property name was also treated as a function |
+// name. |
+var global = 'horse'; |
+var p = { get global() { return global; }}; |
+assertEquals('horse', p.global); |