Index: src/messages.cc |
diff --git a/src/messages.cc b/src/messages.cc |
index aa878eede6c16af97ab56a10f200ed27acd8021b..2726055c2ca8bdab7a43a28965105d0921413eac 100644 |
--- a/src/messages.cc |
+++ b/src/messages.cc |
@@ -301,7 +301,7 @@ namespace { |
Object* EvalFromFunctionName(Isolate* isolate, Handle<Script> script) { |
if (script->eval_from_shared()->IsUndefined(isolate)) |
- return *isolate->factory()->undefined_value(); |
+ return isolate->heap()->undefined_value(); |
Handle<SharedFunctionInfo> shared( |
SharedFunctionInfo::cast(script->eval_from_shared())); |
@@ -315,13 +315,13 @@ Object* EvalFromFunctionName(Isolate* isolate, Handle<Script> script) { |
Object* EvalFromScript(Isolate* isolate, Handle<Script> script) { |
if (script->eval_from_shared()->IsUndefined(isolate)) |
- return *isolate->factory()->undefined_value(); |
+ return isolate->heap()->undefined_value(); |
Handle<SharedFunctionInfo> eval_from_shared( |
SharedFunctionInfo::cast(script->eval_from_shared())); |
return eval_from_shared->script()->IsScript() |
? eval_from_shared->script() |
- : *isolate->factory()->undefined_value(); |
+ : isolate->heap()->undefined_value(); |
} |
MaybeHandle<String> FormatEvalOrigin(Isolate* isolate, Handle<Script> script) { |