Evaluating ZenTS
ZenTS is intended for Unity projects using TypeScript/JavaScript with consistent CLR interop. It follows ZLua's binding-plan and marshaling design rather than exposing a JS engine API to business code.
Design overview
ZenTS brings ZLua's CLR interop design to JavaScript/TypeScript: shared binding rules, signature bridges, and configuration, adapted where JS or its host requires different behavior.
CLR hosts and JS backends
Editor/Player CLR execution paths and V8/HostJs backends are separate dimensions, not separate sets of interop semantics.
Types and declared views
CLR type objects, System.Type wrappers, instance wrappers, and plain JS values have different roles.
Marshaling model
Marshaling depends on CLR slot type, direction, byref role, and explicit policy, rather than a universal JS-to-object conversion.
CLR wrappers and member lookup
Exotic objects, internal slots, STO, and IEO describe observable behavior, not one engine's layout. V8 templates/internal fields and HostJs proxies/handle tables can implement the same rules.
Glossary
| Term | Meaning |