Index: src/debug/debug-frames.cc |
diff --git a/src/debug/debug-frames.cc b/src/debug/debug-frames.cc |
index 5eeb42a9e281937cf1dd96bb3cf3eff6bdd4c750..b1a8af256934d3e5d8ba93c49a9bce0d7c5e8d62 100644 |
--- a/src/debug/debug-frames.cc |
+++ b/src/debug/debug-frames.cc |
@@ -138,7 +138,9 @@ void FrameInspector::MaterializeStackLocals(Handle<JSObject> target, |
if (value->IsTheHole(isolate_)) { |
value = isolate_->factory()->undefined_value(); |
} |
- if (value->IsOptimizedOut()) value = isolate_->factory()->undefined_value(); |
+ if (value->IsOptimizedOut(isolate_)) { |
+ value = isolate_->factory()->undefined_value(); |
+ } |
JSObject::SetOwnPropertyIgnoreAttributes(target, name, value, NONE).Check(); |
} |
} |