Index: src/bootstrapper.h |
diff --git a/src/bootstrapper.h b/src/bootstrapper.h |
index 81acc68afbc3a888cdbe3fe1473550dbfceb291b..b2b563fc7b6a13d8b298204d5f4958e1b0fc4e34 100644 |
--- a/src/bootstrapper.h |
+++ b/src/bootstrapper.h |
@@ -48,7 +48,9 @@ class SourceCodeCache final BASE_EMBEDDED { |
cache_->CopyTo(0, *new_array, 0, cache_->length()); |
cache_ = *new_array; |
Handle<String> str = |
- factory->NewStringFromAscii(name, TENURED).ToHandleChecked(); |
+ factory |
+ ->NewStringFromOneByte(Vector<const uint8_t>::cast(name), TENURED) |
+ .ToHandleChecked(); |
DCHECK(!str.is_null()); |
cache_->set(length, *str); |
cache_->set(length + 1, *shared); |