diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-05-02 16:23:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-02 16:23:14 +0200 |
commit | 04c8f8f8bc2d2dccb6675bd1ed9912f098e76739 (patch) | |
tree | 7d78110b55ac5d72eb9f15584ec18afbb5948670 /toolkit/components/osfile/modules/osfile_win_front.jsm | |
parent | 832046aeb726dee290d2827a20d571034b6bc64a (diff) | |
parent | 3442ae7718679a4da8664bdbb561f746e0357203 (diff) | |
download | UXP-04c8f8f8bc2d2dccb6675bd1ed9912f098e76739.tar UXP-04c8f8f8bc2d2dccb6675bd1ed9912f098e76739.tar.gz UXP-04c8f8f8bc2d2dccb6675bd1ed9912f098e76739.tar.lz UXP-04c8f8f8bc2d2dccb6675bd1ed9912f098e76739.tar.xz UXP-04c8f8f8bc2d2dccb6675bd1ed9912f098e76739.zip |
Merge pull request #320 from janekptacijarabaci/instanceof_negations_1
palemoon#1173: Fix unsafe "instanceof" negations
Diffstat (limited to 'toolkit/components/osfile/modules/osfile_win_front.jsm')
-rw-r--r-- | toolkit/components/osfile/modules/osfile_win_front.jsm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/components/osfile/modules/osfile_win_front.jsm b/toolkit/components/osfile/modules/osfile_win_front.jsm index 387dd08b5..1123b251c 100644 --- a/toolkit/components/osfile/modules/osfile_win_front.jsm +++ b/toolkit/components/osfile/modules/osfile_win_front.jsm @@ -909,7 +909,7 @@ * implementation. */ File.DirectoryIterator.Entry.toMsg = function toMsg(value) { - if (!value instanceof File.DirectoryIterator.Entry) { + if (!(value instanceof File.DirectoryIterator.Entry)) { throw new TypeError("parameter of " + "File.DirectoryIterator.Entry.toMsg must be a " + "File.DirectoryIterator.Entry"); @@ -958,7 +958,7 @@ * is asymmetric and returns an object with a different implementation. */ File.Info.toMsg = function toMsg(stat) { - if (!stat instanceof File.Info) { + if (!(stat instanceof File.Info)) { throw new TypeError("parameter of File.Info.toMsg must be a File.Info"); } let serialized = {}; |