Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index e27feec1a63dbed8f1882d347144ff867664a859..18ac6ededed440ef60a7ea2f94ff6587bc5019d3 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -1183,6 +1183,7 @@ void AstConstructionVisitor::VisitCallRuntime(CallRuntime* node) { |
Handle<String> Literal::ToString() { |
if (handle_->IsString()) return Handle<String>::cast(handle_); |
+ Factory* factory = Isolate::Current()->factory(); |
ASSERT(handle_->IsNumber()); |
char arr[100]; |
Vector<char> buffer(arr, ARRAY_SIZE(arr)); |
@@ -1194,7 +1195,7 @@ Handle<String> Literal::ToString() { |
} else { |
str = DoubleToCString(handle_->Number(), buffer); |
} |
- return FACTORY->NewStringFromAscii(CStrVector(str)); |
+ return factory->NewStringFromAscii(CStrVector(str)); |
} |