Mercurial > scratch
comparison pydershell/test.js @ 26:b7037cd0f375
Added support for exposing object properties to JS.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Mon, 07 Sep 2009 22:17:57 -0700 |
parents | 1950b0b5bcd8 |
children |
comparison
equal
deleted
inserted
replaced
25:64fb84017d87 | 26:b7037cd0f375 |
---|---|
15 bar({blarg: "aweg", bar: function() { return this.blarg; }}); | 15 bar({blarg: "aweg", bar: function() { return this.blarg; }}); |
16 | 16 |
17 var mybaz = baz(); | 17 var mybaz = baz(); |
18 print(mybaz.woozle(5)); | 18 print(mybaz.woozle(5)); |
19 ensureBaz(mybaz); | 19 ensureBaz(mybaz); |
20 print(mybaz.moose); | |
21 print(mybaz.moose); | |
22 mybaz.moose = 0; | |
23 print(mybaz.moose); |