Closed smiley8D closed 1 month ago
Hey,
thanks for reporting.
Seems like there is an issue with the interpreter when it comes to generating bytecode for an import statement. I'll look into the issue.
Just released a new version for greybel-js, greybel-vs and miniscript-vs. Should fix the issue for all of those. In case you're still expiring the same problems feel free to reopen this issue.
I confirm that the interpreter is behaving as expected with v2.5.1 both in the above example and in my project where I originally noticed the issue. Thanks!
The interpreter does not appear to correctly evaluate "isa" for different imports for the same library.
lib.src
mid.src
main.src
When main.src is is executed by the interpreter, the output is:
If main.src is built first and then run (uglify, dlo):
The output is:
My uneducated guess is the interpreter is not recognizing that the imports of
Lib
in main.src and mid.src refer to the same class, soisa
evaluates to false. This was all done with the visual studio code extension.