Since 4.0, all supported JS runtimes populate the stack property of Error objects when the Error is instantiated, not when it's thrown.
Since 4.0, all supported JS runtimes populate the stack property of Error objects when the Error is instantiated, not when it's thrown.