On 12/18/2012 09:08 PM, Norbert Lindenberg wrote: > When happens when the value of the |undefined| variable of one frame is > passed to another frame? Does it compare === to the |undefined| variable of > the other frame?
The value of the global |undefined| property is immutable, and it is the only value of the Undefined type. So window1.undefined === window2.undefined, and indeed that value only compares === to itself. Because this is self-hosting code, I am not worried about someone deciding to shadow the |undefined| name with a different value. Nobody is going to r+ any self-hosting code that shadows |undefined|. So there's no reason we can't rely on it always having its original value. :-) Jeff _______________________________________________ dev-tech-js-engine-internals mailing list dev-tech-js-engine-internals@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals