File tree 3 files changed +12
-5
lines changed
3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 29
29
30
30
# Reset this number to 0 on major V8 upgrades.
31
31
# Increment by one for each non-official patch applied to deps/v8.
32
- 'v8_embedder_string' : '-node.19 ' ,
32
+ 'v8_embedder_string' : '-node.20 ' ,
33
33
34
34
# Enable disassembler for `--print-code` v8 options
35
35
'v8_enable_disassembler' : 1 ,
Original file line number Diff line number Diff line change @@ -1735,7 +1735,9 @@ class V8_EXPORT StackTrace {
1735
1735
/* *
1736
1736
* Returns a StackFrame at a particular index.
1737
1737
*/
1738
- Local<StackFrame> GetFrame (uint32_t index) const ;
1738
+ V8_DEPRECATE_SOON (" Use Isolate version" ,
1739
+ Local<StackFrame> GetFrame (uint32_t index) const );
1740
+ Local<StackFrame> GetFrame (Isolate* isolate, uint32_t index) const ;
1739
1741
1740
1742
/* *
1741
1743
* Returns the number of StackFrames.
Original file line number Diff line number Diff line change @@ -3015,15 +3015,20 @@ void Message::PrintCurrentStackTrace(Isolate* isolate, FILE* out) {
3015
3015
3016
3016
// --- S t a c k T r a c e ---
3017
3017
3018
- Local<StackFrame> StackTrace::GetFrame (uint32_t index) const {
3019
- i::Isolate* isolate = Utils::OpenHandle (this )->GetIsolate ();
3018
+ Local<StackFrame> StackTrace::GetFrame (Isolate* v8_isolate,
3019
+ uint32_t index) const {
3020
+ i::Isolate* isolate = reinterpret_cast <i::Isolate*>(v8_isolate);
3020
3021
ENTER_V8_NO_SCRIPT_NO_EXCEPTION (isolate);
3021
- EscapableHandleScope scope (reinterpret_cast <Isolate*>(isolate) );
3022
+ EscapableHandleScope scope (v8_isolate );
3022
3023
auto obj = handle (Utils::OpenHandle (this )->get (index ), isolate);
3023
3024
auto info = i::Handle <i::StackFrameInfo>::cast (obj);
3024
3025
return scope.Escape (Utils::StackFrameToLocal (info));
3025
3026
}
3026
3027
3028
+ Local<StackFrame> StackTrace::GetFrame (uint32_t index) const {
3029
+ i::Isolate* isolate = Utils::OpenHandle (this )->GetIsolate ();
3030
+ return GetFrame (reinterpret_cast <Isolate*>(isolate), index );
3031
+ }
3027
3032
3028
3033
int StackTrace::GetFrameCount () const {
3029
3034
return Utils::OpenHandle (this )->length ();
You can’t perform that action at this time.
0 commit comments