aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/jsinterp.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-08-25 09:36:32 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-08-25 09:40:46 +0530
commit164b03c4864b0d44cfee5e7702f7c2317164a6cf (patch)
tree9036c265811001118cc394e3bef9bb8c041f5ae3 /yt_dlp/jsinterp.py
parente5458d1d88fcc81011ab19ba610c4b37946c9fa9 (diff)
[jsinterp] Fix bug in operator precedence
Fixes https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1226659543
Diffstat (limited to 'yt_dlp/jsinterp.py')
-rw-r--r--yt_dlp/jsinterp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/jsinterp.py b/yt_dlp/jsinterp.py
index 2b68f53fa..1995e9d0e 100644
--- a/yt_dlp/jsinterp.py
+++ b/yt_dlp/jsinterp.py
@@ -98,8 +98,8 @@ _OPERATORS = { # None => Defined in JSInterpreter._operator
'&': _js_bit_op(operator.and_),
'===': operator.is_,
- '==': _js_eq_op(operator.eq),
'!==': operator.is_not,
+ '==': _js_eq_op(operator.eq),
'!=': _js_eq_op(operator.ne),
'<=': _js_comp_op(operator.le),