Browse Source

failing test for #860

legacy-quote-reserved-properties
Rich Harris 8 years ago
parent
commit
00c70e35cb
  1. 6
      test/function/export-as-default/_config.js
  2. 3
      test/function/export-as-default/foo.js
  3. 3
      test/function/export-as-default/main.js

6
test/function/export-as-default/_config.js

@ -0,0 +1,6 @@
var assert = require( 'assert' );
module.exports = {
solo: true,
description: 'export { foo as default } does not create a live binding'
};

3
test/function/export-as-default/foo.js

@ -0,0 +1,3 @@
let foo = 1;
export { foo as default };
foo = 2;

3
test/function/export-as-default/main.js

@ -0,0 +1,3 @@
import foo from './foo.js';
assert.equal( foo, 1 );
Loading…
Cancel
Save