Check for duplicate named exports in exported rest elements/properties (#164)
This commit is contained in:
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring16/actual.js
vendored
Normal file
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring16/actual.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export const foo = 1;
|
||||
export const [bar, ...foo] = baz;
|
||||
|
||||
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring16/options.json
vendored
Normal file
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring16/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:22)"
|
||||
}
|
||||
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring17/actual.js
vendored
Normal file
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring17/actual.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export const [foo, ...bar] = baz;
|
||||
export const bar = 1;
|
||||
|
||||
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring17/options.json
vendored
Normal file
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring17/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "`bar` has already been exported. Exported identifiers must be unique. (2:13)"
|
||||
}
|
||||
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring18/actual.js
vendored
Normal file
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring18/actual.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export const foo = 1;
|
||||
export const [bar, [baz, ...foo]] = qux;
|
||||
|
||||
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring18/options.json
vendored
Normal file
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring18/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:28)"
|
||||
}
|
||||
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring19/actual.js
vendored
Normal file
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring19/actual.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export const foo = 1;
|
||||
export const { bar: [baz, ...foo] } = qux;
|
||||
|
||||
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring19/options.json
vendored
Normal file
3
test/fixtures/es2015/modules/duplicate-named-export-destructuring19/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:29)"
|
||||
}
|
||||
Reference in New Issue
Block a user