If I load a module, where one of the dependencies of that module throws in
its immediate execution, the module I loaded will return successfully,
while the error will be thrown in the environment. There is no way to
currently see the tree that caused that module to be loaded in the first
place.
guybedf...@gmail.com
Sent: Tuesday, June 24, 2014 14:11
To: es-discuss
Subject: debugging modules
If I load a module, where one of the dependencies of that module throws in its
immediate execution, the module I loaded will return successfully, while the
error will be thrown in the environment
...@mozilla.org on behalf of Guy
Bedford guybedf...@gmail.com
*Sent:* Tuesday, June 24, 2014 14:11
*To:* es-discuss
*Subject:* debugging modules
If I load a module, where one of the dependencies of that module throws
in its immediate execution, the module I loaded will return successfully,
while
On Tue, Jun 24, 2014 at 12:53 PM, Guy Bedford guybedf...@gmail.com wrote:
If it is a tools problem, it becomes a much more complex problem.
Firstly note that the promise isn't rejecting, it is resolving correctly.
That is if I have a module X:
X.js
throw this module throws;
Then:
*To:* es-discuss
*Subject:* debugging modules
If I load a module, where one of the dependencies of that module throws
in its immediate execution, the module I loaded will return successfully,
while the error will be thrown in the environment. There is no way to
currently see the tree
Firstly note that the promise isn't rejecting, it is resolving correctly.
That is if I have a module X:
X.js
throw this module throws;
Then:
System.import('X').then(function(m) {
// this returns correctly, with m defined.
});
This needs to reject. Anything else is crazy-pants.
On Tue, Jun 24, 2014 at 1:11 PM, Guy Bedford guybedf...@gmail.com wrote:
If I load a module, where one of the dependencies of that module throws in
its immediate execution, the module I loaded will return successfully, while
the error will be thrown in the environment. [...]
I think it's just
7 matches
Mail list logo