test262/src/dynamic-import/import-defer-no-rest-param.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

19 lines
539 B
Plaintext

// Copyright (C) 2025 Igalia, S.L. All rights reserved.
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: ImportCall is not extensible - no rest parameter
template: syntax/invalid
info: |
ImportCall :
import . defer ( AssignmentExpression[+In, ?Yield] )
This production doesn't allow the following production from ArgumentsList:
... AssignmentExpression
features: [import-defer]
---*/
//- import
import.defer(...['./empty_FIXTURE.js'])