diff options
-rw-r--r-- | youtube_dl/swfinterp.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/swfinterp.py b/youtube_dl/swfinterp.py index 6f3c3bf95..99220940f 100644 --- a/youtube_dl/swfinterp.py +++ b/youtube_dl/swfinterp.py @@ -170,6 +170,10 @@ class _Undefined(object): def __hash__(self): return 0 + def __str__(self): + return 'undefined' + __repr__ = __str__ + undefined = _Undefined() @@ -686,6 +690,7 @@ class SWFInterpreter(object): res = _builtin_classes[mname] else: # Assume unitialized + # TODO warn here res = undefined stack.append(res) elif opcode == 97: # setproperty |