scozv / algo-js

[obsoleted] has been moved to project Tango:
https://github.com/scozv/tango
GNU General Public License v3.0
2 stars 1 forks source link

error should be thrown from where it occurs, instead of being constructed in constructor #15

Closed scozv closed 10 years ago

scozv commented 10 years ago

From Algo.js of Google Code on August 09, 2013 14:47:54

What steps will reproduce the problem?

  1. in graph, or stack type...
  2. we create an instance of some errors in constructor
  3. we throw error instance from other code What is the expected output?

What do you see instead? it is expected to see a correct error stack, instead of an error stack including just constructor address

Please use labels and text to provide additional information. try to use const string for error message, instead of error instance.

Original issue: http://code.google.com/p/algo-js/issues/detail?id=15

scozv commented 10 years ago

From Algo.js of Google Code on August 11, 2013 03:06:39

fixed in revision b1a5dd5aa9be

Status: Fixed