Fix an ancient nit-level inefficiency: an id passed to resolve will never be a double if a number, only an int.

This commit is contained in:
brendan%mozilla.org 2005-05-20 20:35:35 +00:00
parent 7292f808d8
commit 664e05666c

View File

@ -3725,7 +3725,7 @@ nsWindowSH::GetProperty(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
// whacky, that's because this method is *extremely* performace
// critical. Don't touch this unless you know what you're doing.
if (JSVAL_IS_NUMBER(id)) {
if (JSVAL_IS_INT(id)) {
// If we're accessing a numeric property we'll treat that as if
// window.frames.n is accessed (since window.frames === window),
// if window.frames.n is a child frame, wrap the frame and return