Subj : Re: Object properties that dont yet exist? To : Brian From : Brendan Eich Date : Tue Oct 07 2003 11:48 am Brian wrote: >SOrry to reply to my own message, but I understand more now than when >I wrote this. Now, I see that I can generate an AddProperty callback >when this is done, which gives me a big id number (1559158). > The id is a jsval, so that's not an int-tagged jsval (JSVAL_IS_INT(id) evaluates to false). In fact it is a tagged JSString pointer. You shouldn't treat it as an int-tagged jsval, although it's ok to treat the entire jsval as a word-sized number. > If I set >the value, I also get the SetProperty callback with the same big id >number. > > Why don't you just let non-predefined property ids alone in your setProperty hook? Why throw an error for them? /be .