mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
4 changed files with 6 additions and 4 deletions
@ -1,6 +1,6 @@ |
|||||
import { X } from './x.js'; // import X works
|
import { X } from './x.js'; // import X works
|
||||
|
|
||||
X.prototype.bar = function () { |
X.prototype.bar = function () { |
||||
console.log( 'bar' ); |
this.didBar = true; |
||||
return this; |
return this; |
||||
}; |
}; |
||||
|
@ -1,4 +1,6 @@ |
|||||
import { x } from './x.js'; |
import { x } from './x.js'; |
||||
import './bar.js'; |
import './bar.js'; |
||||
|
|
||||
x().foo().bar(); |
var result = x().foo().bar(); |
||||
|
assert.ok( result.didFoo ); |
||||
|
assert.ok( result.didBar ); |
||||
|
Loading…
Reference in new issue