469,328 Members | 1,324 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,328 developers. It's quick & easy.

__defineProperty__ documentation?

Hi,
I'm looking for documentation on the __defineProperty__ SpiderMonkey
extension.
Olov Johansson

Jan 19 '06 #1
3 1907


Olov Johansson wrote:
I'm looking for documentation on the __defineProperty__ SpiderMonkey
extension.


Do you mean __defineGetter__ and __defineSetter__?
<http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:Creating_New_Objects:Def ining_Getters_and_Setters>

Or in which version of Spidermonkey do you have a method
__defineProperty__ for what kind of object?
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jan 19 '06 #2
Martin Honnen wrote:
Or in which version of Spidermonkey do you have a method
__defineProperty__ for what kind of object?


I saw it in Narcissus [
http://lxr.mozilla.org/mozilla/sourc...arcissus/js.js ] and figured
that it would therefore be in the current released Spidermonkey, but as
you point out it doesn't work on Spidermonkey as of Firefox 1.5. It
seems like the feature is only available in the HEAD-branch [
http://lxr.mozilla.org/mozilla/source/js/src/js.c ] where it's only
used in between #ifdef NARCISSUS, so it seems like an internal feature
making a metacircular interpreter a bit easier to write. The post would
have been more appropiate on netscape.public.mozilla.jseng.
/Olov Johansson

Jan 19 '06 #3


Olov Johansson wrote:
The post would
have been more appropiate on netscape.public.mozilla.jseng.


Should be mozilla.dev.tech.js-engine any time soon as they have switched
servers already and are setting up a completely new newsgroup structure:
<http://www.mozilla.org/community/newsgroups.txt>
And right, asking there would probably give you an expert's (named
Brendan Eich) answer.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jan 19 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

20 posts views Thread by Daniel R. Smorey Jr. | last post: by
24 posts views Thread by Christopher J. Bottaro | last post: by
1 post views Thread by Ole Hanson | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.