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.38 ' ,
39+ 'v8_embedder_string' : '-node.39 ' ,
4040
4141 ##### V8 defaults for Node.js #####
4242
Original file line number Diff line number Diff line change @@ -4761,6 +4761,20 @@ MaybeHandle<FixedArray> Isolate::GetImportAssertionsFromArgument(
47614761 // an error.
47624762 return MaybeHandle<FixedArray>();
47634763 }
4764+
4765+ if (V8_UNLIKELY (!import_assertions_object->IsUndefined ())) {
4766+ MessageLocation* location = nullptr ;
4767+ MessageLocation computed_location;
4768+ if (ComputeLocation (&computed_location)) {
4769+ location = &computed_location;
4770+ }
4771+ Handle<JSMessageObject> message = MessageHandler::MakeMessageObject (
4772+ this , MessageTemplate::kImportAssertDeprecated , location,
4773+ factory ()->NewStringFromAsciiChecked (" a future version" ),
4774+ Handle<FixedArray>::null ());
4775+ message->set_error_level (v8::Isolate::kMessageWarning );
4776+ MessageHandler::ReportMessage (this , location, message);
4777+ }
47644778 }
47654779
47664780 // 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