diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h index 8e26d782575e20..9606b407b9d1f2 100644 --- a/deps/v8/include/v8.h +++ b/deps/v8/include/v8.h @@ -1511,6 +1511,8 @@ class V8_EXPORT StackTrace { /** * Flags that determine what information is placed captured for each * StackFrame when grabbing the current stack trace. + * Note: these options are deprecated and we always collect all available + * information (kDetailed). */ enum StackTraceOptions { kLineNumber = 1, @@ -1539,7 +1541,7 @@ class V8_EXPORT StackTrace { /** * Returns StackTrace as a v8::Array that contains StackFrame objects. */ - Local AsArray(); + V8_DEPRECATED("Use native API instead", Local AsArray()); /** * Grab a snapshot of the current JavaScript execution stack. @@ -1549,9 +1551,7 @@ class V8_EXPORT StackTrace { * StackFrame. */ static Local CurrentStackTrace( - Isolate* isolate, - int frame_limit, - StackTraceOptions options = kOverview); + Isolate* isolate, int frame_limit, StackTraceOptions options = kDetailed); };