2023-09-13 13:51:31 +02:00
|
|
|
// Copyright (C) 2021 the V8 project authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
|
|
description: >
|
|
|
|
`with` AttributesKeyword in WithClause in ImportDeclaration can
|
|
|
|
be preceded by a line terminator
|
|
|
|
esid: sec-modules
|
|
|
|
info: |
|
|
|
|
ImportDeclaration:
|
2024-02-10 01:36:41 +01:00
|
|
|
import ModuleSpecifier WithClause;
|
2023-09-13 13:51:31 +02:00
|
|
|
|
|
|
|
WithClause:
|
|
|
|
AttributesKeyword {}
|
|
|
|
AttributesKeyword { WithEntries ,opt }
|
|
|
|
|
|
|
|
AttributesKeyword:
|
|
|
|
with
|
|
|
|
[no LineTerminator here] assert
|
|
|
|
|
|
|
|
negative:
|
|
|
|
phase: resolution
|
2024-01-11 16:43:51 +01:00
|
|
|
type: SyntaxError
|
2023-09-13 13:51:31 +02:00
|
|
|
features: [import-attributes, globalThis]
|
|
|
|
flags: [module, raw]
|
|
|
|
---*/
|
|
|
|
|
|
|
|
throw "Test262: This statement should not be evaluated.";
|
|
|
|
|
|
|
|
import "./ensure-linking-error_FIXTURE.js";
|
|
|
|
|
|
|
|
import * as x from './import-attribute-1_FIXTURE.js'
|
|
|
|
with
|
2024-01-11 16:43:51 +01:00
|
|
|
{};
|