Skip to content

Commit 3c78a76

Browse files
committed
fixup! deps: update merve to 1.2.0
1 parent 92a2ff9 commit 3c78a76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_cjs_lexer.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ void Parse(const FunctionCallbackInfo<Value>& args) {
7171
// Convert exports to JS Set
7272
Local<Set> exports_set = Set::New(isolate);
7373
for (const auto& exp : analysis.exports) {
74-
exports_set->Add(context, CreateString(isolate, exp)).ToLocalChecked();
74+
exports_set->Add(context, CreateString(isolate, exp.name)).ToLocalChecked();
7575
}
7676

7777
// Convert reexports to JS array using batch creation
7878
LocalVector<Value> reexports_vec(isolate);
7979
reexports_vec.reserve(analysis.re_exports.size());
8080
for (const auto& reexp : analysis.re_exports) {
81-
reexports_vec.push_back(CreateString(isolate, reexp));
81+
reexports_vec.push_back(CreateString(isolate, reexp.name));
8282
}
8383

8484
// Create result array [exports (Set), reexports (Array)]

0 commit comments

Comments
 (0)