From 763c2e6d74dee30db0260436cc128ab00d015d7f Mon Sep 17 00:00:00 2001 From: Dominik Roessler Date: Thu, 15 May 2025 10:15:36 +0200 Subject: [PATCH] Update node-expat.cc --- node-expat.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/node-expat.cc b/node-expat.cc index c81d54b..8702fef 100644 --- a/node-expat.cc +++ b/node-expat.cc @@ -494,7 +494,9 @@ extern "C" { { Parser::Initialize(target); } - //Changed the name cause I couldn't load the module with - in their names - NODE_MODULE(node_expat, InitAll); + // Make init context aware + NODE_MODULE_INIT() { + InitAll(exports); + } };