/pyjs/tests/test031.js

http://pyjamas.googlecode.com/ · JavaScript · 13 lines · 11 code · 2 blank · 0 comment · 0 complexity · df4ff4c9117ee1360ea4f7d8307d5c25 MD5 · raw file

  1. __Foo.prototype.__class__ = "Foo";
  2. function Foo() {
  3. return new __Foo();
  4. }
  5. function __Foo() {
  6. }
  7. __Foo.BAR = __Foo.prototype.BAR = 1;
  8. __Foo.BAZ = __Foo.prototype.BAZ = 2;
  9. function test() {
  10. return __Foo.BAR;
  11. }