Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 70f46c88bf18dd348f209df512efdb044881e687..d9dd12e1876967373184d057fe465647a141e2c2 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -9562,7 +9562,8 @@ static Handle<Object> NewSingleInterval(Isolate* isolate, uint32_t length) { |
Handle<FixedArray> single_interval = isolate->factory()->NewFixedArray(2); |
// -1 means start of array. |
single_interval->set(0, Smi::FromInt(-1)); |
- single_interval->set(1, *isolate->factory()->NewNumberFromUint(length)); |
+ Handle<Object> number = isolate->factory()->NewNumberFromUint(length); |
+ single_interval->set(1, *number); |
return isolate->factory()->NewJSArrayWithElements(single_interval); |
} |