[jsinterp] Improve JS language support (#31175)
authordirkf <fieldhouse@gmx.net>
Wed, 17 Aug 2022 13:22:02 +0000 (14:22 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Aug 2022 13:22:02 +0000 (14:22 +0100)
commitb0a60ce2032172aeaaf27fe3866ab72768f10cb2
tree06737da607ed206c20ff56caf0624fb7345ff8fd
parente52e8b8111cf7ca27daef184bacd926865e951b1
[jsinterp] Improve JS language support (#31175)

* operator ??
* operator ?.
* operator **
* accurate operator functions
* `undefined` handling
* object literals {a: 1, "b": expr}
* more tests for weird JS comparisons: see https://github.com/ytdl-org/youtube-dl/issues/31173#issuecomment-1217854397.
test/test_jsinterp.py
test/test_youtube_signature.py
youtube_dl/jsinterp.py