mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-08 08:17:31 +09:00
Fix unsafe "instanceof" negations
https://github.com/MoonchildProductions/Pale-Moon/pull/1173
This commit is contained in:
parent
a073130d31
commit
b56d147095
17 changed files with 19 additions and 28 deletions
|
|
@ -43,7 +43,7 @@ WBORecord.prototype = {
|
|||
// Get thyself from your URI, then deserialize.
|
||||
// Set thine 'response' field.
|
||||
fetch: function fetch(resource) {
|
||||
if (!resource instanceof Resource) {
|
||||
if (!(resource instanceof Resource)) {
|
||||
throw new Error("First argument must be a Resource instance.");
|
||||
}
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ WBORecord.prototype = {
|
|||
},
|
||||
|
||||
upload: function upload(resource) {
|
||||
if (!resource instanceof Resource) {
|
||||
if (!(resource instanceof Resource)) {
|
||||
throw new Error("First argument must be a Resource instance.");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue