@@ -181,42 +181,6 @@ static void PushBackDestroyId(Environment* env, double id) {
181
181
}
182
182
183
183
184
- bool DomainEnter (Environment* env, Local<Object> object) {
185
- Local<Value> domain_v = object->Get (env->domain_string ());
186
- if (domain_v->IsObject ()) {
187
- Local<Object> domain = domain_v.As <Object>();
188
- if (domain->Get (env->disposed_string ())->IsTrue ())
189
- return true ;
190
- Local<Value> enter_v = domain->Get (env->enter_string ());
191
- if (enter_v->IsFunction ()) {
192
- if (enter_v.As <Function>()->Call (domain, 0 , nullptr ).IsEmpty ()) {
193
- FatalError (" node::AsyncWrap::MakeCallback" ,
194
- " domain enter callback threw, please report this" );
195
- }
196
- }
197
- }
198
- return false ;
199
- }
200
-
201
-
202
- bool DomainExit (Environment* env, v8::Local<v8::Object> object) {
203
- Local<Value> domain_v = object->Get (env->domain_string ());
204
- if (domain_v->IsObject ()) {
205
- Local<Object> domain = domain_v.As <Object>();
206
- if (domain->Get (env->disposed_string ())->IsTrue ())
207
- return true ;
208
- Local<Value> exit_v = domain->Get (env->exit_string ());
209
- if (exit_v->IsFunction ()) {
210
- if (exit_v.As <Function>()->Call (domain, 0 , nullptr ).IsEmpty ()) {
211
- FatalError (" node::AsyncWrap::MakeCallback" ,
212
- " domain exit callback threw, please report this" );
213
- }
214
- }
215
- }
216
- return false ;
217
- }
218
-
219
-
220
184
void AsyncWrap::EmitBefore (Environment* env, double async_id) {
221
185
AsyncHooks* async_hooks = env->async_hooks ();
222
186
0 commit comments