Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 169307fb8e077c8cb4513f6f9fdaa489ac2dc26d..32127eb8b9f19afd9e3cf46c04303b900ca86772 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -9734,7 +9734,8 @@ bool SharedFunctionInfo::HasSourceCode() { |
Handle<Object> SharedFunctionInfo::GetSourceCode() { |
if (!HasSourceCode()) return GetIsolate()->factory()->undefined_value(); |
Handle<String> source(String::cast(Script::cast(script())->source())); |
- return SubString(source, start_position(), end_position()); |
+ return GetIsolate()->factory()->NewSubString( |
+ source, start_position(), end_position()); |
} |