-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: namespace export should have @@toStringTag with correct propert…
…y descriptors
- Loading branch information
1 parent
50f46bc
commit e38cfca
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
description: 'namespace export should have @@toStringTag with correct property descriptors #4336', | ||
options: { | ||
output: { | ||
namespaceToStringTag: true | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const foo = 'bar'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import * as ns from './foo.js'; | ||
|
||
const { configurable, enumerable, value, writable } = Object.getOwnPropertyDescriptor( | ||
ns, | ||
Symbol.toStringTag | ||
); | ||
|
||
assert.strictEqual(value, 'Module', 'value'); | ||
assert.strictEqual(configurable, false, 'configurable'); | ||
assert.strictEqual(enumerable, false, 'enumerable'); | ||
assert.strictEqual(writable, false, 'writable'); |