Index: src/string-stream.cc |
diff --git a/src/string-stream.cc b/src/string-stream.cc |
index ba4a65cb6317d313d825d263c440527065809181..109622567aca808d0e0dce38a1acd8c61b46868c 100644 |
--- a/src/string-stream.cc |
+++ b/src/string-stream.cc |
@@ -290,7 +290,8 @@ void StringStream::OutputToFile(FILE* out) { |
Handle<String> StringStream::ToString() { |
- return FACTORY->NewStringFromUtf8(Vector<const char>(buffer_, length_)); |
+ Factory* factory = Isolate::Current()->factory(); |
+ return factory->NewStringFromUtf8(Vector<const char>(buffer_, length_)); |
} |