Labs/Jetpack/Binary Components: Difference between revisions

Jump to navigation Jump to search
Line 101: Line 101:
<code>nsJetpack.</code>'''functionInfo'''(''func'')
<code>nsJetpack.</code>'''functionInfo'''(''func'')


'''TODO:''' Document this function.
Returns a JSON-able object with the following properties:


<code>nsJetpack.</code>'''seal'''(''object'')
::<code>filename</code> - The filename in which ''func'' is defined.
::<code>lineNumber</code> - The line number at which ''func'' is defined.


'''TODO:''' Document this function.
<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>.
93

edits

Navigation menu