import-source-binding-name_FIXTURE.js (766B)
1 // |reftest| skip -- not a test file 2 // Copyright (C) 2024 Chengzhong Wu. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 // ImportBinding in ImportDeclaration may be 'source' and 'from' 6 // This test is verified with `import-source.js` in the same directory that 7 // this file does not raise SyntaxError. Note that a SyntaxError could also 8 // be raised when the imported module does not have a source phase 9 // representation (see sec-source-text-module-record-initialize-environment, 7.c.ii). 10 // 11 // esid: sec-modules 12 // info: 13 // ImportDeclaration: 14 // import source ImportedBinding FromClause ; 15 16 import "./ensure-linking-error_FIXTURE.js"; 17 18 import source from '<do not resolve>'; 19 import from from '<do not resolve>';