Index: test/cctest/test-alloc.cc |
diff --git a/test/cctest/test-alloc.cc b/test/cctest/test-alloc.cc |
index d647a3128e0749e10ba39b5b9988b6fa67d2ba67..54d516e13eb4b7b47e3ca54f81c26257e353d4b8 100644 |
--- a/test/cctest/test-alloc.cc |
+++ b/test/cctest/test-alloc.cc |
@@ -86,7 +86,7 @@ static AllocationResult AllocateAfterFailures() { |
Builtins::kIllegal)).ToObjectChecked(); |
// Return success. |
- return Smi::FromInt(42); |
+ return heap->true_value(); |
} |
@@ -100,7 +100,7 @@ TEST(StressHandles) { |
v8::Handle<v8::Context> env = v8::Context::New(CcTest::isolate()); |
env->Enter(); |
Handle<Object> o = Test(); |
- CHECK(o->IsSmi() && Smi::cast(*o)->value() == 42); |
+ CHECK(o->IsTrue()); |
env->Exit(); |
} |
@@ -162,7 +162,7 @@ TEST(StressJS) { |
// Call the accessor through JavaScript. |
v8::Handle<v8::Value> result = v8::Script::Compile( |
v8::String::NewFromUtf8(CcTest::isolate(), "(new Foo).get"))->Run(); |
- CHECK_EQ(42, result->Int32Value()); |
+ CHECK_EQ(true, result->BooleanValue()); |
env->Exit(); |
} |