mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
The previous code cast the integer (long actually) to void * and gave that to JS_SetPrivate. This did not work because JS_SetPrivate expects pointers to be aligned and replaces the least significant bit with a tag. By using JS_SetReservedSlot instead, we get control of the jsval conversions and can store the integer properly.