Index: test/mjsunit/typeof.js |
diff --git a/test/mjsunit/typeof.js b/test/mjsunit/typeof.js |
index 39dec72962a4265030aa97bf050dd943143f4508..947a8473537f8229e579f392072a1acff7e64331 100644 |
--- a/test/mjsunit/typeof.js |
+++ b/test/mjsunit/typeof.js |
@@ -25,14 +25,14 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// The type of a regular expression should be 'function', including in |
+// The type of a regular expression should be 'object', including in |
// the context of string equality comparisons. |
var r = new RegExp; |
-assertEquals('function', typeof r); |
-assertTrue(typeof r == 'function'); |
+assertEquals('object', typeof r); |
+assertTrue(typeof r == 'object'); |
function test(x, y) { return x == y; } |
-assertFalse(test('object', typeof r)); |
+assertTrue(test('object', typeof r)); |
-assertFalse(typeof r == 'object'); |
+assertTrue(typeof r == 'object'); |