From f1890abb18ad97b5d25008a6124e575610a2a4aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sat, 18 May 2024 15:32:19 +0200 Subject: [PATCH] src: replace deprecated GetImportAssertions V8 API Use `GetImportAttributes` instead. PR-URL: https://github.com/nodejs/node/pull/52997 Reviewed-By: Chemi Atlow Reviewed-By: Luigi Pinca --- src/module_wrap.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module_wrap.cc b/src/module_wrap.cc index f6285182d92871..15468b6c638748 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -423,9 +423,9 @@ static Local createModuleRequestsContainer( Local 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 raw_attributes = module_request->GetImportAssertions(); + Local raw_attributes = module_request->GetImportAttributes(); Local attributes = createImportAttributesContainer(realm, isolate, raw_attributes, 3);