Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / v8 / test / cctest / test-mementos.cc
index 1dc38f9..a377b4a 100644 (file)
@@ -39,7 +39,8 @@ static void SetUpNewSpaceWithPoisonedMementoAtTop() {
   heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
 
   // Allocate a string, the GC may suspect a memento behind the string.
-  Handle<SeqOneByteString> string = isolate->factory()->NewRawOneByteString(12);
+  Handle<SeqOneByteString> string =
+      isolate->factory()->NewRawOneByteString(12).ToHandleChecked();
   CHECK(*string);
 
   // Create an allocation memento behind the string with a garbage allocation