mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
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:
parent
7292f808d8
commit
664e05666c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user