Index: src/runtime/runtime-function.cc |
diff --git a/src/runtime/runtime-function.cc b/src/runtime/runtime-function.cc |
index 5e212a5bc9c861779050a78db930f728fbe36280..e575712daea1306e3a9f5a73a571eef66038789c 100644 |
--- a/src/runtime/runtime-function.cc |
+++ b/src/runtime/runtime-function.cc |
@@ -542,8 +542,10 @@ RUNTIME_FUNCTION(Runtime_GetOriginalConstructor) { |
DCHECK(args.length() == 0); |
JavaScriptFrameIterator it(isolate); |
JavaScriptFrame* frame = it.frame(); |
- return frame->IsConstructor() ? frame->GetOriginalConstructor() |
- : isolate->heap()->undefined_value(); |
+ // Currently we don't inline [[Construct]] calls. |
+ return frame->IsConstructor() && !frame->HasInlinedFrames() |
+ ? frame->GetOriginalConstructor() |
+ : isolate->heap()->undefined_value(); |
} |