Index: test/cctest/heap/test-heap.cc |
diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc |
index 691f0b0cd73774bb7dc3ea9a7e1049d290255472..88aee8adf89e4794ded2445a3261d83a01ca650f 100644 |
--- a/test/cctest/heap/test-heap.cc |
+++ b/test/cctest/heap/test-heap.cc |
@@ -5703,9 +5703,10 @@ TEST(Regress388880) { |
Heap* heap = isolate->heap(); |
Handle<Map> map1 = Map::Create(isolate, 1); |
+ Handle<String> name = factory->NewStringFromStaticChars("foo"); |
+ name = factory->InternalizeString(name); |
Handle<Map> map2 = |
- Map::CopyWithField(map1, factory->NewStringFromStaticChars("foo"), |
- FieldType::Any(isolate), NONE, |
+ Map::CopyWithField(map1, name, FieldType::Any(isolate), NONE, |
Representation::Tagged(), OMIT_TRANSITION) |
.ToHandleChecked(); |