Reject non-strings in GlobalScopePolluterNewResolve to cope with E4X changes (275912).

This commit is contained in:
brendan%mozilla.org 2004-12-26 22:48:39 +00:00
parent d3197a9276
commit 5683db9679

View File

@ -3516,7 +3516,7 @@ nsWindowSH::GlobalScopePolluterNewResolve(JSContext *cx, JSObject *obj,
{
if (flags & (JSRESOLVE_ASSIGNING | JSRESOLVE_DECLARING |
JSRESOLVE_CLASSNAME | JSRESOLVE_QUALIFIED) ||
JSVAL_IS_INT(id)) {
!JSVAL_IS_STRING(id)) {
// Nothing to do here if we're either assigning or declaring,
// resolving a class name, doing a qualified resolve, or
// resolving a number.