/js/src/jit-test/tests/jaeger/bug600424.js

http://github.com/zpao/v8monkey · JavaScript · 14 lines · 13 code · 0 blank · 1 comment · 0 complexity · 18cf62d9023549b96971f76754799bc6 MD5 · raw file

  1. // vim: set ts=4 sw=4 tw=99 et:
  2. function f(a) {
  3. var x = {
  4. g: function () {
  5. return this.a;
  6. }
  7. };
  8. x.g.prototype.a = a;
  9. assertEq(x.g.prototype.a, a);
  10. return x;
  11. }
  12. f(1);
  13. f(2);
  14. f(3);