blob: 8e13ce2cf688d743a618a536de9e71f02fa606f3 [file] [log] [blame] [edit]
// Copyright (C) 2024 Chengzhong Wu. 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: import.source() can be used in script code
template: syntax/valid
features: [source-phase-imports, source-phase-imports-module-source]
---*/
//- setup
// This is still valid in script code, and should not be valid for module code
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
var smoosh; function smoosh() {}
//- import
import.source('<module source>')