Age | Commit message (Collapse) | Author |
|
Partly taken from yt-dlp/yt-dlp#10664, thx seproDev
Fixes #32896
|
|
* support `prototype` for call() and apply() (yt-dlp/yt-dlp#10392, thx Grub4k)
* map JS `Array` to `list`
|
|
Passes tests from yt-dlp
|
|
Thx: various yt-dlp authors
|
|
* treat Infinity like NaN
* cache operator list
|
|
* improve BODMAS (fixes https://github.com/ytdl-org/youtube-dl/issues/32815)
* support more weird expressions with multiple unary ops
|
|
* https://github.com/yt-dlp/yt-dlp/commit/8f53dc4
* thx pukkandan
|
|
|
|
|
|
Thx: https://github.com/yt-dlp/yt-dlp/commit/01aba25
|
|
|
|
|
|
Thx bashonly: https://github.com/ytdl-org/youtube-dl/issues/32292#issuecomment-1585639223
Fixes #32292
|
|
* update signature tests
* clarify NaN handling
|
|
* special handling for (d%e.length+e.length)%e.length speeds up ~6%
|
|
* also add _NaN
* also pull function naming from yt-dlp
|
|
Resolves #32066
|
|
* For performance, make regexp object instantiation lazy
* Other small performance improvements
|
|
See yt-dlp/yt_dlp#6400
|
|
Resolves #31600
|
|
|
|
* support subset `... else if ...`
* support `while`
* add `RegExp` class
* generalise `new` support
* limited more debug strings
* matching test changes
|
|
Fix for yt-dlp/yt_dlp#6131
Closes #31509
|
|
Based on https://github.com/yt-dlp/yt-dlp/commit/0468a3b3253957bfbeb98b4a7c71542ff80e9e06
|
|
* temporary fix for player 5a3b6271 [1]
1. https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1235384480
|
|
* add NaN
* allow any white-space character for `after_op`
* align with yt-dlp f26af78a8ac11d9d617ed31ea5282cfaa5bcbcfa (charcodeAt and bitwise overflow)
* allow escaping in regex, fixing player c57c113c
|
|
|
|
* from https://github.com/yt-dlp/yt-dlp/commit/164b03c4864b0d44cfee5e7702f7c2317164a6cf
* added tests
|
|
* add compat_re_Pattern
* improve compat_collections_chain_map
* use class JS_Undefined
* remove unused code
|
|
* based on https://github.com/yt-dlp/yt-dlp/commit/f6ca640b122239d5ab215f8c2564efb7ac3e8c65, thanks pukkandan
* adds parse support for regexp flags
|
|
* 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.
|
|
(#31170)
* back-port from yt-dlp 8f53dc44a0cc1c2d98c35740b9293462c080f5d0, thanks pukkandan
* also support void, improve <</>> precedence, improve expressions in comma-list
* add more tests
|
|
yt-dlp/yt-dlp/@06dfe0a, improve _MATCHING_PARENS
|
|
|
|
Needed for new youtube js player f1ca6900
Add https://github.com/yt-dlp/yt-dlp/commit/57dbe8077f8d00e0fffac53669f40cd7d584474f#diff-729b57caa8d006426f6a8960c061f519a8b6658682284015e069745af52ffb07
|
|
Add https://github.com/yt-dlp/yt-dlp/commit/a1fc7ca0743c8df06416e68ee74b64e07dfe7135
Thanks coletdjnz
|
|
|
|
|
|
#13130)
|
|
|
|
|
|
|
|
This reverts commit 7c05097633138459e9bdf7e10738e021b04689a7.
|
|
In order to add a new key to both __objects and __functions dicts on jsinterp.py, it is
necessary to first verify if a key was present and if not, create the key and
assign it to a value.
However, this can be done with a single step using dict setdefault method.
|
|
|
|
#7624, fixes #7625, fixes #7626)
|
|
|
|
We need a proper lexer to be able to understand YouTube's code, which contains /* inside of strings.
For now it's sufficient to just disable comment support altogether.
Fixes #4976, fixes #4979, fixes #4980, fixes #4981, fixes #4982.
Closes #4977.
|
|
|
|
In preparation for #4822, extend jsinterp by a lot. (We may even have to/want to write a proper interpreter with actual parsing)
|