Index: test/cctest/cctest.h |
diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h |
index 0def37546f4241c71456874452e0d6dbe9aed474..fe9ae6e38d9ae1a4addcfd18c0d4bedc6ff66b60 100644 |
--- a/test/cctest/cctest.h |
+++ b/test/cctest/cctest.h |
@@ -550,6 +550,12 @@ static inline void ExpectUndefined(const char* code) { |
} |
+static inline void ExpectNull(const char* code) { |
+ v8::Local<v8::Value> result = CompileRun(code); |
+ CHECK(result->IsNull()); |
+} |
+ |
+ |
static inline void CheckDoubleEquals(double expected, double actual) { |
const double kEpsilon = 1e-10; |
CHECK_LE(expected, actual + kEpsilon); |