Index: test/mjsunit/mjsunit.js |
=================================================================== |
--- test/mjsunit/mjsunit.js (revision 3230) |
+++ test/mjsunit/mjsunit.js (working copy) |
@@ -75,6 +75,9 @@ |
if (typeof a == "number" && typeof b == "number" && isNaN(a) && isNaN(b)) { |
return true; |
} |
+ if (a.constructor === RegExp || b.constructor === RegExp) { |
+ return (a.constructor === b.constructor) && (a.toString === b.toString); |
+ } |
if ((typeof a) !== 'object' || (typeof b) !== 'object' || |
(a === null) || (b === null)) |
return false; |