Browse Source

kernel: Fix == to ===.

Herbert Vojčík 7 years ago
parent
commit
c1e277ef23
1 changed files with 1 additions and 1 deletions
  1. 1 1
      support/kernel-language.js

+ 1 - 1
support/kernel-language.js

@@ -267,7 +267,7 @@ define(['./compatibility'], function () {
         st.addClass = function (className, superclass, iVarNames, pkgName) {
             // While subclassing nil is allowed, it might be an error, so
             // warn about it.
-            if (typeof superclass == 'undefined' || superclass && superclass.a$nil) {
+            if (typeof superclass === 'undefined' || superclass && superclass.a$nil) {
                 console.warn('Compiling ' + className + ' as a subclass of `nil`. A dependency might be missing.');
             }
             return buildBehaviorBody(pkgName, classBuilder(className, superclass, iVarNames, coreFns[className]));