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.
  • Loading branch information
targos committed May 15, 2024
1 parent 9807ede commit d1efc0a
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 d1efc0a

Please sign in to comment.