93
edits
(→Flexible Membrane Functionality: added more notes) |
(→Miscellaneous Functions: added docs) |
||
| Line 101: | Line 101: | ||
<code>nsJetpack.</code>'''functionInfo'''(''func'') | <code>nsJetpack.</code>'''functionInfo'''(''func'') | ||
Returns a JSON-able object with the following properties: | |||
<code> | ::<code>filename</code> - The filename in which ''func'' is defined. | ||
::<code>lineNumber</code> - The line number at which ''func'' is defined. | |||
''' | <code>nsJetpack.</code>'''seal'''(''object'', ''isDeep'') | ||
This is essentially a JavaScript version of [https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_SealObject JS_SealObject]. | |||
Note that according to the documentation for <code>JS_SealObject</code> and John Resig's post on [http://ejohn.org/blog/ecmascript-5-objects-and-properties/ Ecmascript 5], this actually appears to be more similar to ES5's <code>Object.freeze()</code> than it is to ES5's <code>Object.seal()</code>. | |||
edits