Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index b9e0b38561868236174684e3c39b80cdf9ec935e..a1037f79163c90e48d5ac4125b868f670ddec96a 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -1179,7 +1179,7 @@ Handle<String> Literal::ToString() { |
} else { |
str = DoubleToCString(value_->Number(), buffer); |
} |
- return isolate_->factory()->NewStringFromAscii(CStrVector(str)); |
+ return isolate_->factory()->NewStringFromAsciiChecked(str); |
} |