1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2025-04-07 15:38:06 -05:00

[JSInterp] Temporary fix for

This commit is contained in:
dirkf 2025-03-31 04:21:09 +01:00 committed by GitHub
parent 4e714f9df1
commit 3eb8d22ddb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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: