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: #52997
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
targos committed May 21, 2024
1 parent 3f7d55b commit f1890ab
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 f1890ab

Please sign in to comment.