874
edits
(changed code examples to reflect reference implementation) |
(renamed __exposed__ to __exposedProps__) |
||
| Line 123: | Line 123: | ||
<pre class="brush:js;"> | <pre class="brush:js;"> | ||
exports.foo = { | exports.foo = { | ||
__exposedProps__ = {bar: 'r'}, | |||
bar: function bar() { /* ... */ }, | bar: function bar() { /* ... */ }, | ||
baz: 5 | baz: 5 | ||
| Line 139: | Line 139: | ||
exports.foo = { | exports.foo = { | ||
__exposedProps__ = {bar: 'r'}, | |||
bar: function bar() { | bar: function bar() { | ||
if (caps.has('file:read')) { | if (caps.has('file:read')) { | ||
edits