Fix import paths in negative module tests (#4973)
JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
This commit is contained in:
@@ -13,4 +13,4 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { , as b } from "../es.next/module-export-01.mjs";
|
import { , as b } from "../module-export-01.mjs";
|
||||||
|
|||||||
@@ -13,4 +13,4 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import , as b from "../es.next/module-export-01.mjs";
|
import , as b from "../module-export-01.mjs";
|
||||||
|
|||||||
@@ -13,4 +13,4 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { b as , } from "../es.next/module-export-01.mjs";
|
import { b as , } from "../module-export-01.mjs";
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Named imports must be in a NamedImports block. */
|
/* Named imports must be in a NamedImports block. */
|
||||||
import b as , from "../es.next/module-export-01.mjs";
|
import b as , from "../module-export-01.mjs";
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Can't have duplicate local bindings */
|
/* Can't have duplicate local bindings */
|
||||||
import { c as a, d as a } from "../es.next/module-export-01.mjs";
|
import { c as a, d as a } from "../module-export-01.mjs";
|
||||||
|
|||||||
@@ -15,5 +15,5 @@
|
|||||||
|
|
||||||
/* Import/export statements must be in the global scope. */
|
/* Import/export statements must be in the global scope. */
|
||||||
if (true) {
|
if (true) {
|
||||||
import { c } from "../es.next/module-export-01.mjs";
|
import { c } from "../module-export-01.mjs";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,5 +15,5 @@
|
|||||||
|
|
||||||
/* Import/export statements must be in the global scope. */
|
/* Import/export statements must be in the global scope. */
|
||||||
function someFunction() {
|
function someFunction() {
|
||||||
import { c } from "../es.next/module-export-01.mjs";
|
import { c } from "../module-export-01.mjs";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Import/export statements must be in the global scope. */
|
/* Import/export statements must be in the global scope. */
|
||||||
eval ('import { c } from "../es.next/module-export-01.mjs";');
|
eval ('import { c } from "../module-export-01.mjs";');
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* NamedImports must always be followed by a FromClause. */
|
/* NamedImports must always be followed by a FromClause. */
|
||||||
import { b }, from "../es.next/module-export-01.mjs"
|
import { b }, from "../module-export-01.mjs"
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* An import statement can have either a NameSpaceImport or NamedIpmorts */
|
/* An import statement can have either a NameSpaceImport or NamedIpmorts */
|
||||||
import * as mod, { b } from "../es.next/module-export-01.mjs"
|
import * as mod, { b } from "../module-export-01.mjs"
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* '*' is not valid inside NamedImports. */
|
/* '*' is not valid inside NamedImports. */
|
||||||
import { *, d } from "../es.next/module-imported-01.mjs"
|
import { *, d } from "../module-imported-01.mjs"
|
||||||
|
|||||||
@@ -14,5 +14,5 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Can't have duplicated local bindings. */
|
/* Can't have duplicated local bindings. */
|
||||||
import { b } from "../es.next/module-export-01.mjs"
|
import { b } from "../module-export-01.mjs"
|
||||||
import { b } from "../es.next/module-export-02.mjs"
|
import { b } from "../module-export-02.mjs"
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* FromClause must follow an ImportClause. */
|
/* FromClause must follow an ImportClause. */
|
||||||
import from "../es.next/module-export-02.mjs"
|
import from "../module-export-02.mjs"
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Namespace imports must have a local name. */
|
/* Namespace imports must have a local name. */
|
||||||
import * from "../es.next/module-export-01.mjs"
|
import * from "../module-export-01.mjs"
|
||||||
|
|||||||
@@ -15,4 +15,4 @@
|
|||||||
|
|
||||||
export function ns() {}
|
export function ns() {}
|
||||||
/* Duplicated export. */
|
/* Duplicated export. */
|
||||||
export * as ns from "../es.next/module-export-fail-test.mjs"
|
export * as ns from "../module-export-fail-test.mjs"
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Indirect exports must be checked if they are resolvable. */
|
/* Indirect exports must be checked if they are resolvable. */
|
||||||
export { l } from "../es.next/module-export-01.mjs"
|
export { l } from "../module-export-01.mjs"
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Ambiguous import */
|
/* Ambiguous import */
|
||||||
import { x } from "../es.next/module-export-05.mjs"
|
import { x } from "../module-export-05.mjs"
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Import/export statements must be in the global scope. */
|
/* Import/export statements must be in the global scope. */
|
||||||
Function('','import { c } from "../es.next/module-export-01.mjs";')
|
Function('','import { c } from "../module-export-01.mjs";')
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* No default export found. */
|
/* No default export found. */
|
||||||
import def from "../es.next/module-export-06.mjs"
|
import def from "../module-export-06.mjs"
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
let a;
|
let a;
|
||||||
import { a } from "../es.next/module-export-fail-test.mjs";
|
import { a } from "../module-export-fail-test.mjs";
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
var a;
|
var a;
|
||||||
import { a } from "../es.next/module-export-fail-test.mjs";
|
import { a } from "../module-export-fail-test.mjs";
|
||||||
|
|||||||
@@ -13,5 +13,5 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { a } from "../es.next/module-export-fail-test.mjs";
|
import { a } from "../module-export-fail-test.mjs";
|
||||||
class a {};
|
class a {};
|
||||||
|
|||||||
@@ -13,5 +13,5 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { a } from "../es.next/module-export-fail-test.mjs";
|
import { a } from "../module-export-fail-test.mjs";
|
||||||
function a() {}
|
function a() {}
|
||||||
|
|||||||
@@ -13,4 +13,4 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
export {} from "dummy.mjs";
|
export {} from "dummy.mjs";
|
||||||
export {} from "../es.next/module-export-04.mjs";
|
export {} from "../module-export-04.mjs";
|
||||||
|
|||||||
Reference in New Issue
Block a user