Prevent circular dependencies in $extends

This commit is contained in:
Bán Dénes 2024-04-14 18:07:30 +02:00
parent dd6ff93a89
commit 887220abe3
6 changed files with 17 additions and 4 deletions

View file

@ -61,6 +61,12 @@ describe('Prepare', function() {
y: 2,
z: 3
})
// should be able to detect circular dependencies and error out
p.inherit.bind(this, {
a: {
$extends: 'a'
}
}).should.throw('circular dependency')
})
it('parameterize', function() {