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 <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
targos authored May 18, 2024
1 parent eaa839e commit 37960ff
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 37960ff

Please sign in to comment.