Index: src/builtins/builtins-error.cc |
diff --git a/src/builtins/builtins-error.cc b/src/builtins/builtins-error.cc |
index c9150b85159237ebb7ea13b4fc4e78311410c74f..c2a7b990357a42d2e0f644ff38fde801daf2b124 100644 |
--- a/src/builtins/builtins-error.cc |
+++ b/src/builtins/builtins-error.cc |
@@ -44,7 +44,7 @@ BUILTIN(ErrorCaptureStackTrace) { |
} |
Handle<JSObject> object = Handle<JSObject>::cast(object_obj); |
Handle<Object> caller = args.atOrUndefined(isolate, 2); |
- FrameSkipMode mode = caller->IsJSFunction() ? SKIP_UNTIL_SEEN : SKIP_NONE; |
+ FrameSkipMode mode = caller->IsJSFunction() ? SKIP_UNTIL_SEEN : SKIP_FIRST; |
// Collect the stack trace. |