mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
5 changed files with 16 additions and 1 deletions
@ -0,0 +1,8 @@ |
|||
var assert = require( 'assert' ); |
|||
|
|||
module.exports = { |
|||
description: 'export from does not create a local binding', |
|||
runtimeError: function ( err ) { |
|||
assert.ok( /foo is not defined/.test( err.message ) ); |
|||
} |
|||
}; |
@ -0,0 +1 @@ |
|||
export default function() {} |
@ -0,0 +1,3 @@ |
|||
export {default as foo} from './foo'; |
|||
|
|||
export var foo1 = foo(); // This should fail as foo lacks a local binding.
|
Loading…
Reference in new issue