Index: test/cctest/compiler/test-run-intrinsics.cc |
diff --git a/test/cctest/compiler/test-run-intrinsics.cc b/test/cctest/compiler/test-run-intrinsics.cc |
index d53d8644f17dde645d7be8c595e5373d79b3c6ea..1fa37748c6753d5e0b64705bc5cb0100088d0d1e 100644 |
--- a/test/cctest/compiler/test-run-intrinsics.cc |
+++ b/test/cctest/compiler/test-run-intrinsics.cc |
@@ -172,12 +172,17 @@ TEST(IsRegExp) { |
TEST(IsSmi) { |
FunctionTester T("(function(a) { return %_IsSmi(a); })", flags); |
+ T.CheckFalse(T.NewObject("new Date()")); |
+ T.CheckFalse(T.NewObject("(function() {})")); |
+ T.CheckFalse(T.NewObject("([1])")); |
+ T.CheckFalse(T.NewObject("({})")); |
+ T.CheckFalse(T.NewObject("(/x/)")); |
+ T.CheckFalse(T.undefined()); |
T.CheckTrue(T.Val(1)); |
T.CheckFalse(T.Val(1.1)); |
T.CheckFalse(T.Val(-0.0)); |
T.CheckTrue(T.Val(-2)); |
T.CheckFalse(T.Val(-2.3)); |
- T.CheckFalse(T.undefined()); |
} |