]> git.kaiwu.me - quickjs.git/commit
Fix `JS_HasException()` when `null` is thrown (#313)
authorKasper Isager Dalsgarð <kasperisager@hey.com>
Wed, 17 Jul 2024 11:58:08 +0000 (13:58 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Jul 2024 11:58:08 +0000 (13:58 +0200)
commit5417ab0159fc48c217ff91344a833d3286b8895d
treedff50518c2eb9dafb600005e7d2a1de227b65ab3
parentb3715f7cb1f7e7e99fa5e768e3af3f6bb22ae50f
Fix `JS_HasException()` when `null` is thrown (#313)

Use `JS_UNINITIALIZED` instead of `JS_NULL` when no exception is pending, so `null` can be thrown and distinguished from no exception pending.
quickjs.c