debugging modules

2014-06-24 Thread Guy Bedford
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.

RE: debugging modules

2014-06-24 Thread Domenic Denicola
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

Re: debugging modules

2014-06-24 Thread Guy Bedford
...@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

Re: debugging modules

2014-06-24 Thread John Barton
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:

RE: debugging modules

2014-06-24 Thread Patrick Mueller
*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

Re: debugging modules

2014-06-24 Thread Kevin Smith
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.

Re: debugging modules

2014-06-24 Thread Jason Orendorff
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