observablehq/runtime

References to variables that have circular definitions show an inconsistent error.

mbostock opened this issue · 0 comments

foo = bar
bar = foo
foo

The third cell first rejects with: RuntimeError: circular definition

But if you evaluate it again, you get: RuntimeError: foo could not be resolved

I think the latter is the intended error.