mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
6 changed files with 42 additions and 1 deletions
@ -0,0 +1,3 @@ |
|||||
|
module.exports = { |
||||
|
description: 'does not stack overflow on crazy cyclical dependencies' |
||||
|
}; |
@ -0,0 +1,11 @@ |
|||||
|
import { C } from './c.js'; |
||||
|
|
||||
|
export function B () {}; |
||||
|
|
||||
|
B.prototype = { |
||||
|
c: function () { |
||||
|
return function () { |
||||
|
new C(); |
||||
|
}; |
||||
|
}() |
||||
|
}; |
@ -0,0 +1,13 @@ |
|||||
|
import { D } from './d.js'; |
||||
|
|
||||
|
export function C () { |
||||
|
this.x = 'x'; |
||||
|
} |
||||
|
|
||||
|
C.prototype = { |
||||
|
d: function () { |
||||
|
return function () { |
||||
|
new D(); |
||||
|
}; |
||||
|
}() |
||||
|
}; |
@ -0,0 +1,12 @@ |
|||||
|
import { B } from './b.js'; |
||||
|
import { C } from './c.js'; |
||||
|
|
||||
|
export function D () {}; |
||||
|
|
||||
|
D.prototype = { |
||||
|
c: function () { |
||||
|
return function () { |
||||
|
new C(); |
||||
|
}; |
||||
|
}() |
||||
|
}; |
@ -0,0 +1,3 @@ |
|||||
|
import { C } from './c.js'; |
||||
|
|
||||
|
assert.equal( new C().x, 'x' ); |
Loading…
Reference in new issue