/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
- // vim: set ts=4 sw=4 tw=99 et:
- function f(a) {
- var x = {
- g: function () {
- return this.a;
- }
- };
- x.g.prototype.a = a;
- assertEq(x.g.prototype.a, a);
- return x;
- }
- f(1);
- f(2);
- f(3);