Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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/Refe...


Thanks for suggesting that. Looks like they've implemented that here:

https://github.com/stackframe-projects/pgmock/commit/f80d9fa...

It seems to have beendeployed out to the demo already as it's working now. :)


My bad, gotta fix that one!




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: