Skip to content

Commit 3eb8d22

Browse files
authored
[JSInterp] Temporary fix for #33102
1 parent 4e714f9 commit 3eb8d22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

youtube_dl/jsinterp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,8 @@ def _index(self, obj, idx, allow_undefined=None):
686686
raise self.Exception('Cannot get index {idx!r:.100}'.format(**locals()), expr=repr(obj), cause=e)
687687

688688
def _dump(self, obj, namespace):
689+
if obj is JS_Undefined:
690+
return 'undefined'
689691
try:
690692
return json.dumps(obj)
691693
except TypeError:

0 commit comments

Comments
 (0)