mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-04-07 15:38:06 -05:00
[JSInterp] Temporary fix for #33102
This commit is contained in:
parent
4e714f9df1
commit
3eb8d22ddb
@ -686,6 +686,8 @@ class JSInterpreter(object):
|
||||
raise self.Exception('Cannot get index {idx!r:.100}'.format(**locals()), expr=repr(obj), cause=e)
|
||||
|
||||
def _dump(self, obj, namespace):
|
||||
if obj is JS_Undefined:
|
||||
return 'undefined'
|
||||
try:
|
||||
return json.dumps(obj)
|
||||
except TypeError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user