Skip to content

Commit

Permalink
deps: v8: record dynamic import call without import assertsions
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas committed Nov 23, 2022
1 parent 6582d98 commit d731a0e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions deps/v8/src/execution/execution.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ InvokeParams InvokeParams::SetUpForCall(Isolate* isolate,
params.receiver = NormalizeReceiver(isolate, receiver);
// Check for host-defined options argument for scripts.
DCHECK_IMPLIES(params.IsScript(), argc == 1);
DCHECK_IMPLIES(params.IsScript(), argv[0]->IsFixedArray());
params.argc = argc;
params.argv = argv;
params.new_target = isolate->factory()->undefined_value();
Expand All @@ -137,7 +136,6 @@ InvokeParams InvokeParams::SetUpForTryCall(
params.receiver = NormalizeReceiver(isolate, receiver);
// Check for host-defined options argument for scripts.
DCHECK_IMPLIES(params.IsScript(), argc == 1);
DCHECK_IMPLIES(params.IsScript(), argv[0]->IsFixedArray());
params.argc = argc;
params.argv = argv;
params.new_target = isolate->factory()->undefined_value();
Expand Down Expand Up @@ -338,7 +336,6 @@ V8_WARN_UNUSED_RESULT MaybeHandle<Object> Invoke(Isolate* isolate,
DCHECK(params.IsScript());
DCHECK(params.receiver->IsJSGlobalProxy());
DCHECK_EQ(params.argc, 1);
DCHECK(params.argv[0]->IsFixedArray());
} else {
DCHECK(!params.IsScript());
}
Expand Down
2 changes: 1 addition & 1 deletion deps/v8/src/parsing/parser-base.h
Original file line number Diff line number Diff line change
Expand Up @@ -3735,8 +3735,8 @@ ParserBase<Impl>::ParseImportExpressions() {
AcceptINScope scope(this, true);
ExpressionT specifier = ParseAssignmentExpressionCoverGrammar();

impl()->scope()->RecordInnerScopeCallsDynamicImport();
if (v8_flags.harmony_import_assertions && Check(Token::COMMA)) {
impl()->scope()->RecordInnerScopeCallsDynamicImport();
if (Check(Token::RPAREN)) {
// A trailing comma allowed after the specifier.
return factory()->NewImportCallExpression(specifier, pos);
Expand Down

0 comments on commit d731a0e

Please sign in to comment.