forked from Mirror/wren
This is a breaking change because existing imports in user Wren code that assume the path is relative to the entrypoint file will now likely fail. Also, stack trace output and host API calls that take a module string now need the resolved module string, not the short name that appears in the import.
13 lines
231 B
Plaintext
13 lines
231 B
Plaintext
import "./a" for A
|
|
import "./b" for B
|
|
|
|
// Shared module should only run once:
|
|
// expect: a
|
|
// expect: shared
|
|
// expect: a done
|
|
// expect: b
|
|
// expect: b done
|
|
|
|
System.print(A) // expect: a shared
|
|
System.print(B) // expect: b shared
|