Comment 37 for bug 605513

Revision history for this message
In , M-wada (m-wada) wrote :

I checked with "never-defined property of existent wrapped object".

Requested following by test extesion where CurrentServer is [xpconnect wrapped nsIMsgIncomingServer],
  CurrentServer.ABCDEFGHIJKLMN=true;
and following exceptin was caught by try/catch(e).
> Try to change never-existent property of wrapped object for bug 831664
> Exception by CurrentServer.ABCDEFGHIJKLMN=true
> [Exception... "Cannot modify properties of a WrappedNative" nsresult: "0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)"

It looks for me simply a "misleading condition name".
If NS_ERROR_XPC_CANT_*CREATE*_PROP_ON_WN, no problem...
If such condition name, it's apparent that fault is in JS code who requestd property value change even though the property is undefined(i.e. non-existent), if "creation of property via wrapped object" is not supported.
And, "why undefined is returned even though property should exist" is different problem from this bug, as seen in bug 831664.