By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,953 Members | 1,109 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,953 IT Pros & Developers. It's quick & easy.

__defineProperty__ documentation?

P: n/a
Hi,
I'm looking for documentation on the __defineProperty__ SpiderMonkey
extension.
Olov Johansson

Jan 19 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a


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

P: n/a
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

P: n/a


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.