File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -126,8 +126,7 @@ function runtime_computeNow() {
126
126
variable . _outputs . forEach ( variable_increment ) ;
127
127
} ) ;
128
128
129
- while ( variables . size ) {
130
-
129
+ do {
131
130
// Identify the root variables (those with no updating inputs).
132
131
variables . forEach ( function ( variable ) {
133
132
if ( variable . _indegree === 0 ) {
@@ -142,15 +141,15 @@ function runtime_computeNow() {
142
141
variables . delete ( variable ) ;
143
142
}
144
143
145
- // Any remaining variables have circular definitions .
144
+ // Any remaining variables are circular, or depend on them .
146
145
variables . forEach ( function ( variable ) {
147
146
if ( variable_circular ( variable ) ) {
148
147
variable_error ( variable , new RuntimeError ( "circular definition" ) ) ;
149
148
variable . _outputs . forEach ( variable_decrement ) ;
150
149
variables . delete ( variable ) ;
151
150
}
152
151
} ) ;
153
- }
152
+ } while ( variables . size ) ;
154
153
155
154
function postqueue ( variable ) {
156
155
if ( -- variable . _indegree === 0 ) {
You can’t perform that action at this time.
0 commit comments