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 36
36
37
37
# Reset this number to 0 on major V8 upgrades.
38
38
# Increment by one for each non-official patch applied to deps/v8.
39
- 'v8_embedder_string' : '-node.38 ' ,
39
+ 'v8_embedder_string' : '-node.39 ' ,
40
40
41
41
##### V8 defaults for Node.js #####
42
42
Original file line number Diff line number Diff line change @@ -4761,6 +4761,20 @@ MaybeHandle<FixedArray> Isolate::GetImportAssertionsFromArgument(
4761
4761
// an error.
4762
4762
return MaybeHandle<FixedArray>();
4763
4763
}
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
+ }
4764
4778
}
4765
4779
4766
4780
// 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