You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@module on an @instanceOf type is silently ignored #9239
@module on an @instanceOf type is silently ignored. The class check then reads a global with the class name, instead of importing the class from the module.
There is no import of three. At runtime Mesh is not defined, so the check throws a ReferenceError, unless some other script happens to define a global Mesh.
Expected: either the check uses the imported class, like a @module("three") external would, or @module on a type declaration is a compile error.
@scope("THREE") is ignored the same way: the check is still s instanceof Mesh, not THREE.Mesh.
Raised in #9058 (comment). Classes from local files and JS libraries need this, not only the DOM.
Activity
Reject @module and @scope on a type without @instanceof
Read the class of an `@instanceOf` type from its `@module` and `@scop…