mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 547827 - JavaScript strict warning: modules/util.js, line 617: reference to undefined property thisObj[name] [r=Mardak]
Check that name is a property of thisObj before trying to access it.
This commit is contained in:
parent
f39831ac01
commit
b5463708b7
@ -614,7 +614,7 @@ let Utils = {
|
||||
thisObj = thisObj || {};
|
||||
|
||||
// Delay an existing timer if it exists
|
||||
if (thisObj[name] instanceof Ci.nsITimer) {
|
||||
if (name in thisObj && thisObj[name] instanceof Ci.nsITimer) {
|
||||
thisObj[name].delay = wait;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user