File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 3636
3737 # Reset this number to 0 on major V8 upgrades.
3838 # Increment by one for each non-official patch applied to deps/v8.
39- 'v8_embedder_string' : '-node.24 ' ,
39+ 'v8_embedder_string' : '-node.25 ' ,
4040
4141 ##### V8 defaults for Node.js #####
4242
Original file line number Diff line number Diff line change @@ -5193,6 +5193,20 @@ MaybeHandle<FixedArray> Isolate::GetImportAssertionsFromArgument(
51935193 // an error.
51945194 return MaybeHandle<FixedArray>();
51955195 }
5196+
5197+ if (V8_UNLIKELY (!import_assertions_object->IsUndefined ())) {
5198+ MessageLocation* location = nullptr ;
5199+ MessageLocation computed_location;
5200+ if (ComputeLocation (&computed_location)) {
5201+ location = &computed_location;
5202+ }
5203+ Handle<JSMessageObject> message = MessageHandler::MakeMessageObject (
5204+ this , MessageTemplate::kImportAssertDeprecated , location,
5205+ factory ()->NewStringFromAsciiChecked (" a future version" ),
5206+ Handle<FixedArray>::null ());
5207+ message->set_error_level (v8::Isolate::kMessageWarning );
5208+ MessageHandler::ReportMessage (this , location, message);
5209+ }
51965210 }
51975211
51985212 // If there is no 'with' or 'assert' option in the options bag, it's not an
You can’t perform that action at this time.
0 commit comments