3 ms·
As a data point, the online demo seems broken for queries it doesn't like: select foo(); Error.captureStackTrace is not a function That's when using F
by justinclift 3y ago
As a data point, the online demo seems broken for queries it doesn't like:
select foo();
Error.captureStackTrace is not a function
That's when using Firefox 124.0.2 on Linux.
- rezonant 3y agoYes, 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. :)
- n2d4 3y agoMy bad, gotta fix that one!