Re: Dynamic Modules Questions

2013-03-07 Thread David Bruant
Le 06/03/2013 23:31, Sam Tobin-Hochstadt a écrit : On Wed, Mar 6, 2013 at 9:46 AM, Kevin Smith khs4...@gmail.com wrote: (Referencing the module loaders proposal at http://wiki.ecmascript.org/doku.php?id=harmony:module_loaders) 1) Loaders have a strict flag which indicates whether code

Re: Dynamic Modules Questions

2013-03-07 Thread Sam Tobin-Hochstadt
On Mar 6, 2013 10:04 PM, Kevin Smith khs4...@gmail.com wrote: 3) There doesn't appear to be a way to provide a dynamically created module instance (created via the Module constructor) as the result of the fetch hook. My thought is that such a feature might be useful for implementing

Re: Dynamic Modules Questions

2013-03-07 Thread Sam Tobin-Hochstadt
On Mar 7, 2013 4:53 AM, David Bruant bruan...@gmail.com wrote: Le 06/03/2013 23:31, Sam Tobin-Hochstadt a écrit : On Wed, Mar 6, 2013 at 9:46 AM, Kevin Smith khs4...@gmail.com wrote: (Referencing the module loaders proposal at http://wiki.ecmascript.org/doku.php?id=harmony:module_loaders)

Re: Dynamic Modules Questions

2013-03-07 Thread David Bruant
Le 07/03/2013 13:19, Sam Tobin-Hochstadt a écrit : On Mar 7, 2013 4:53 AM, David Bruant bruan...@gmail.com mailto:bruan...@gmail.com wrote: Le 06/03/2013 23:31, Sam Tobin-Hochstadt a écrit : On Wed, Mar 6, 2013 at 9:46 AM, Kevin Smith khs4...@gmail.com mailto:khs4...@gmail.com wrote:

Re: Dynamic Modules Questions

2013-03-07 Thread Kevin Smith
This would imply that the result of the fetch hook is ignored if the module has been installed in the module instance table before the hook callbacks are executed. True? This is the same for all the loader hooks, in fact. Sounds good. Is there way, within a fetch hook, to conditionally

Dynamic Modules Questions

2013-03-06 Thread Kevin Smith
(Referencing the module loaders proposal at http://wiki.ecmascript.org/doku.php?id=harmony:module_loaders) 1) Loaders have a strict flag which indicates whether code evaluated in the Loader's context should be implicitly strict. If modules themselves are implicitly strict, is this flag

Re: Dynamic Modules Questions

2013-03-06 Thread Sam Tobin-Hochstadt
On Wed, Mar 6, 2013 at 9:46 AM, Kevin Smith khs4...@gmail.com wrote: (Referencing the module loaders proposal at http://wiki.ecmascript.org/doku.php?id=harmony:module_loaders) 1) Loaders have a strict flag which indicates whether code evaluated in the Loader's context should be implicitly

Re: Dynamic Modules Questions

2013-03-06 Thread Kevin Smith
3) There doesn't appear to be a way to provide a dynamically created module instance (created via the Module constructor) as the result of the fetch hook. My thought is that such a feature might be useful for implementing dynamically linked binary add-on modules in server environments.