We need to...
- add 'type' field ('classic' or 'module') to WorkerGlobalScope,
- throw an exception in WorkerGlobalScope::importScripts() if the type is 'module', and
- add WPT
Regarding the 'type' field, we could add it into GlobalScopeCreationParams and assign it to WorkerGlobalScope::type_ in the ctor of the global scope.
Comment 1 by nhiroki@chromium.org
, Apr 10 2018We need to... - add 'type' field ('classic' or 'module') to WorkerGlobalScope, - throw an exception in WorkerGlobalScope::importScripts() if the type is 'module', and - add WPT Regarding the 'type' field, we could add it into GlobalScopeCreationParams and assign it to WorkerGlobalScope::type_ in the ctor of the global scope.