mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
8 years ago
3 changed files with 20 additions and 14 deletions
@ -0,0 +1,3 @@ |
|||||
|
module.exports = { |
||||
|
// solo: true
|
||||
|
}; |
@ -0,0 +1,14 @@ |
|||||
|
var Foo = (function() { |
||||
|
function Foo() {} |
||||
|
Foo.prototype.toString = function() { return 'foo'; }; |
||||
|
return Foo; |
||||
|
}()); |
||||
|
|
||||
|
var Bar = (function() { |
||||
|
function Bar() {} |
||||
|
Bar.prototype = Foo.prototype; |
||||
|
Bar.prototype.toString = function() { return 'bar'; }; |
||||
|
return Bar; |
||||
|
}()); |
||||
|
|
||||
|
assert.equal( new Foo().toString(), 'bar' ); |
Loading…
Reference in new issue