mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
8 years ago
5 changed files with 18 additions and 2 deletions
@ -0,0 +1,3 @@ |
|||||
|
module.exports = { |
||||
|
description: 'deshadows function expression ID (#1176)' |
||||
|
}; |
@ -0,0 +1,3 @@ |
|||||
|
export function foo () { |
||||
|
return 'works'; |
||||
|
} |
@ -0,0 +1,9 @@ |
|||||
|
import { foo as _foo } from './foo.js'; |
||||
|
|
||||
|
function Thing () {}; |
||||
|
|
||||
|
Thing.prototype.foo = function foo () { |
||||
|
return _foo(); |
||||
|
}; |
||||
|
|
||||
|
assert.equal( new Thing().foo(), 'works' ); |
Loading…
Reference in new issue