PageRenderTime 42ms CodeModel.GetById 20ms app.highlight 2ms RepoModel.GetById 18ms app.codeStats 1ms

/pyjs/tests/test040.js

http://pyjamas.googlecode.com/
JavaScript | 17 lines | 17 code | 0 blank | 0 comment | 0 complexity | 49c5242edf4d83a0e48262e45d537505 MD5 | raw file
 1__Foo.prototype.__class__ = "Foo";
 2function Foo() {
 3    return new __Foo();
 4}
 5function __Foo() {
 6}
 7__Foo.mu = __Foo.prototype.mu = 5;
 8__Foo.prototype.test = function() {
 9    var foo = 5;
10    baz.__setitem__(1, 5);
11    bar.foo = 5;
12    this.foo = 5;
13    biz.baz.foo = 5;
14    baz.__getitem__(2).foo = 5;
15    foo += 5;
16    bar.foo += 5;
17};