mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Reject non-strings in GlobalScopePolluterNewResolve to cope with E4X changes (275912).
This commit is contained in:
parent
d3197a9276
commit
5683db9679
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user