Skip to content

Commit

Permalink
src: replace deprecated GetImportAssertions V8 API
Browse files Browse the repository at this point in the history
Use `GetImportAttributes` instead.

PR-URL: nodejs#52997
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
targos authored and bmeck committed Jun 22, 2024
1 parent 447311b commit b5a3c5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,9 @@ static Local<Array> createModuleRequestsContainer(

Local<String> specifier = module_request->GetSpecifier();

// Contains the import assertions for this request in the form:
// Contains the import attributes for this request in the form:
// [key1, value1, source_offset1, key2, value2, source_offset2, ...].
Local<FixedArray> raw_attributes = module_request->GetImportAssertions();
Local<FixedArray> raw_attributes = module_request->GetImportAttributes();
Local<Object> attributes =
createImportAttributesContainer(realm, isolate, raw_attributes, 3);

Expand Down

0 comments on commit b5a3c5a

Please sign in to comment.