Skip to content

Commit d84f16e

Browse files
committed
src: use async_context instead of custom struct
1 parent 482c27e commit d84f16e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/env.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -313,11 +313,6 @@ class ModuleWrap;
313313

314314
class Environment;
315315

316-
struct node_async_ids {
317-
double async_id;
318-
double trigger_async_id;
319-
};
320-
321316
class IsolateData {
322317
public:
323318
IsolateData(v8::Isolate* isolate, uv_loop_t* event_loop,
@@ -424,7 +419,7 @@ class Environment {
424419
// Used by provider_string().
425420
v8::Isolate* isolate_;
426421
// Stores the ids of the current execution context stack.
427-
std::stack<struct node_async_ids> async_ids_stack_;
422+
std::stack<async_context> async_ids_stack_;
428423
// Attached to a Uint32Array that tracks the number of active hooks for
429424
// each type.
430425
AliasedBuffer<uint32_t, v8::Uint32Array> fields_;

0 commit comments

Comments
 (0)