Copy changes from revision d26387e649bd to js/src.
authorBenjamin Smedberg <benjamin@smedbergs.us>
Sun, 04 Oct 2009 19:21:24 -0400
changeset 33445 2ceeabcf3a12514ddd2197b06a6830a566c08671
parent 33444 d26387e649bdd2644cb0ab401ee70c7b8feff671
child 33446 afcf113533893d930c13f36ca02f024bb9e56244
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.3a1pre
Copy changes from revision d26387e649bd to js/src.
js/src/config/static-checking.js
--- a/js/src/config/static-checking.js
+++ b/js/src/config/static-checking.js
@@ -58,17 +58,17 @@ function hasAttribute(c, attrname)
 }
 
 // This is useful for detecting method overrides
 function signaturesMatch(m1, m2)
 {
   if (m1.shortName != m2.shortName)
     return false;
 
-  if (m1.isVirtual != m2.isVirtual)
+  if ((!!m1.isVirtual) != (!!m2.isVirtual))
     return false;
   
   if (m1.isStatic != m2.isStatic)
     return false;
   
   let p1 = m1.type.parameters;
   let p2 = m2.type.parameters;