Fix operator precedence (#754)

Unlike PHP, in JavaScript ! has higher precedence than instanceof, thus !smth instanceof TypeError will never (unless @@hasInstance is defined) be true.
This commit is contained in:
Aleksey Shvayka 2016-09-02 03:50:25 +03:00 committed by Tom Care
parent 29c2384449
commit 8fbe992e6e
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ p.then(function () {
return "Expected exception to be thrown";
}).then($DONE, function (e) {
if (!e instanceof TypeError) {
if (!(e instanceof TypeError)) {
$ERROR("Expected TypeError but got " + e);
}