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.24 ' ,
39
+ 'v8_embedder_string' : '-node.25 ' ,
40
40
41
41
##### V8 defaults for Node.js #####
42
42
Original file line number Diff line number Diff line change @@ -5193,6 +5193,20 @@ MaybeHandle<FixedArray> Isolate::GetImportAssertionsFromArgument(
5193
5193
// an error.
5194
5194
return MaybeHandle<FixedArray>();
5195
5195
}
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
+ }
5196
5210
}
5197
5211
5198
5212
// 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