Mercurial > scratch
view pydershell/test.js @ 24:dace90a7f5e3
Added a 'jsexposed' decorator and, for security purposes, required that __jsexposed__ be True on all callables passed into JS-land as well.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Mon, 07 Sep 2009 16:53:41 -0700 |
parents | 1950b0b5bcd8 |
children | b7037cd0f375 |
line wrap: on
line source
print('hello there dood'); function blah() { print('hi'); try { throw new Error('baffs'); } catch (e) { print('exception is ' + e); throw e; } } //foo(blah); bar({blarg: "aweg", bar: function() { return this.blarg; }}); var mybaz = baz(); print(mybaz.woozle(5)); ensureBaz(mybaz);