CROSS-DOMAIN MODULES
• Browser loader should allow cross-domain loads
• ServiceWorker requires cross-domain sources
(XHR) and sinks (
![]()
, , etc.)
• Browser's System.define should be a sink
• No problem: type of src parameter unconstrained
in ES semantics — polymorphism to the rescue
• IOW, each loader determines for itself what types
are allowed for source