From 8fbe992e6e44cf4480764a068d05957283eeff75 Mon Sep 17 00:00:00 2001
From: Aleksey Shvayka <shvaikalesh@gmail.com>
Date: Fri, 2 Sep 2016 03:50:25 +0300
Subject: [PATCH] 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.
---
 CONTRIBUTING.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 6e5d41b15c..073ff043da 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -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);
    }
 
-- 
GitLab