3 ms·
Yes, that's a nonstandard function provided by v8, so it wouldn't work on Firefox. [1] This can be worked around by just constructing an Error and taking it's
by rezonant 3y ago
Yes, that's a nonstandard function provided by v8, so it wouldn't work on Firefox. [1]
This can be worked around by just constructing an Error and taking it's stack property, captureStackTrace is just a convenience function, so hopefully they can fix that.
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#error.capturestacktrace https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- justinclift 3y agoThanks for suggesting that. Looks like they've implemented that here: https://github.com/stackframe-projects/pgmock/commit/f80d9fa0ee8d420a9d5947f20a1a6c3bc7482d10 https://github.com/stackframe-projects/pgmock/commit/f80d9fa... It seems to have beendeployed out to the demo already as it's working now. :)