]> git.kaiwu.me - quickjs.git/commit
Fix member access on non-decimal numeric literals
authorbptato <nincsnevem662@gmail.com>
Tue, 24 Mar 2026 18:44:11 +0000 (19:44 +0100)
committerbptato <nincsnevem662@gmail.com>
Tue, 24 Mar 2026 18:44:11 +0000 (19:44 +0100)
commit66afb7234cf53957094509014cc5e97fa152b0f4
treeba96d9d56835bdccfe430b475a843343bde3ceba
parenta31dcef98c7d1d8927871ac169a1c24ad8875046
Fix member access on non-decimal numeric literals

In other engines, 0x0.toString() returns '0', but QJS would try to parse it
as a float and then throw.
Also removes remnants of hex float parsing which is no longer supported
anyway.

(Port of https://github.com/quickjs-ng/quickjs/pull/377)
quickjs.c
tests/test_language.js