mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
src: replace deprecated GetImportAssertions V8 API
Use `GetImportAttributes` instead. PR-URL: https://github.com/nodejs/node/pull/52997 Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
eaa839ed8a
commit
37960ffb23
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user