envvar icon indicating copy to clipboard operation
envvar copied to clipboard

Missing `stack` in errors

Open blakeembrey opened this issue 6 years ago • 2 comments
trafficstars

In every node.js version I tested (6, 8, 10) the UnsetVariableError thrown by this module does not have a stack property because the Error prototype is a weird one to extend from. You need to either use ES6 classes or something like https://github.com/JsCommunity/make-error.

blakeembrey avatar Jul 07 '19 00:07 blakeembrey

@Inrmanish This has nothing to do with same origin policy, it’s running in node.js.

blakeembrey avatar Feb 22 '22 04:02 blakeembrey