Skip to content

Commit

Permalink
test: namespace export should have @@toStringTag value "Module" #4336
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jan 31, 2022
1 parent 50f46bc commit 5fb6e00
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/function/samples/namespace-to-string-tag/_config.js
@@ -0,0 +1,3 @@
module.exports = {
description: 'namespace export should have @@toStringTag value "Module" #4336'
};
1 change: 1 addition & 0 deletions test/function/samples/namespace-to-string-tag/foo.js
@@ -0,0 +1 @@
export const foo = 'bar';
3 changes: 3 additions & 0 deletions test/function/samples/namespace-to-string-tag/main.js
@@ -0,0 +1,3 @@
import * as ns from './foo.js';

assert.strictEqual(ns[Symbol.toStringTag], 'Module');

0 comments on commit 5fb6e00

Please sign in to comment.