File tree 3 files changed +0
-16
lines changed
3 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,6 @@ InternalCallbackScope::InternalCallbackScope(Environment* env,
59
59
AsyncWrap::EmitBefore (env, asyncContext.async_id );
60
60
}
61
61
62
- if (!IsInnerMakeCallback ()) {
63
- env->tick_info ()->set_has_thrown (false );
64
- }
65
-
66
62
env->async_hooks ()->push_async_ids (async_context_.async_id ,
67
63
async_context_.trigger_async_id );
68
64
pushed_ids_ = true ;
@@ -118,7 +114,6 @@ void InternalCallbackScope::Close() {
118
114
if (!env_->can_call_into_js ()) return ;
119
115
120
116
if (env_->tick_callback_function ()->Call (process, 0 , nullptr ).IsEmpty ()) {
121
- env_->tick_info ()->set_has_thrown (true );
122
117
failed_ = true ;
123
118
}
124
119
}
Original file line number Diff line number Diff line change @@ -269,10 +269,6 @@ inline bool Environment::TickInfo::has_scheduled() const {
269
269
return fields_[kHasScheduled ] == 1 ;
270
270
}
271
271
272
- inline bool Environment::TickInfo::has_thrown () const {
273
- return fields_[kHasThrown ] == 1 ;
274
- }
275
-
276
272
inline bool Environment::TickInfo::has_promise_rejections () const {
277
273
return fields_[kHasPromiseRejections ] == 1 ;
278
274
}
@@ -281,10 +277,6 @@ inline void Environment::TickInfo::promise_rejections_toggle_on() {
281
277
fields_[kHasPromiseRejections ] = 1 ;
282
278
}
283
279
284
- inline void Environment::TickInfo::set_has_thrown (bool state) {
285
- fields_[kHasThrown ] = state ? 1 : 0 ;
286
- }
287
-
288
280
inline void Environment::AssignToContext (v8::Local<v8::Context> context,
289
281
const ContextInfo& info) {
290
282
context->SetAlignedPointerInEmbedderData (
Original file line number Diff line number Diff line change @@ -551,10 +551,8 @@ class Environment {
551
551
inline AliasedBuffer<uint8_t , v8::Uint8Array>& fields ();
552
552
inline bool has_scheduled () const ;
553
553
inline bool has_promise_rejections () const ;
554
- inline bool has_thrown () const ;
555
554
556
555
inline void promise_rejections_toggle_on ();
557
- inline void set_has_thrown (bool state);
558
556
559
557
private:
560
558
friend class Environment ; // So we can call the constructor.
@@ -563,7 +561,6 @@ class Environment {
563
561
enum Fields {
564
562
kHasScheduled ,
565
563
kHasPromiseRejections ,
566
- kHasThrown ,
567
564
kFieldsCount
568
565
};
569
566
You can’t perform that action at this time.
0 commit comments