isScript

A frame of the script's own code, keyed on the source name we hand the compiler. A loader/module test would also catch the game, whose loader is unnamed on a plugin host; a class-name test would guess at the compiler's mangling. Types the script declares itself compile from the same file, so they match too.