Index: test/mjsunit/regress/regress-1106.js |
=================================================================== |
--- test/mjsunit/regress/regress-1106.js (revision 6724) |
+++ test/mjsunit/regress/regress-1106.js (working copy) |
@@ -40,3 +40,11 @@ |
for (i=0 ; i < 100000; ++i) { |
assertEquals(5, f()); |
} |
+ |
+// Test calls on functions defined in the prototype of the global object. |
+x.gee = function() { return 42; } |
+function g() { return gee(); } |
+ |
+for (i=0 ; i < 100000; ++i) { |
+ assertEquals(42, g()); |
+} |