PageRenderTime 8ms CodeModel.GetById 3ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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:
 2function 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}
12f(1);
13f(2);
14f(3);