test262/src/dynamic-import/import-defer-assignment-expr-not-optional.case
Nicolò Ribaudo 573058ed2e
Add syntax tests for import.defer (#4374)
These tests are all based on the existing dynamic import syntax tests, just updated to use the new syntax.

This PR does not contain any manually written tests -- they are all generated.
2025-02-04 11:38:19 -08:00

17 lines
560 B
Plaintext

// Copyright (C) 2025 Igalia, S.L. All rights reserved.
// Copyright (C) 2018 Rick Waldron. All rights reserved.
// Copyright (C) 2018 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: It's a SyntaxError if AssignmentExpression is omitted
template: syntax/invalid
info: |
ImportCall[Yield, Await] :
import . defer ( AssignmentExpression[+In, ?Yield, ?Await] )
features: [import-defer]
---*/
//- import
import.defer()
//- teardown
/* The params region intentionally empty */