Discovered an issue with super() call when the method is an alias identifier such as update. If a subclass method calls super().update() it is translated to __super__ (SubCls, 'update') (self) rather than using the alias py_update and results in Superclass method not found error. There is no issue with Cls.update(self) call.
Error 'Superclass method not found'
stack:
at __target__/org.transcrypt.__runtime__.js:1840:17
at Function.__new__ (__target__/org.transcrypt.__runtime__.js:152:23)
at new cls (__target__/org.transcrypt.__runtime__.js:91:24)
at __super__ (__target__/org.transcrypt.__runtime__.js:186:11)
at __target__/test_super.js:22:3
at Function.<anonymous> (__target__/org.transcrypt.__runtime__.js:57:29)
at __target__/test_super.js:30:5
Environment:
Linux
Python 3.9.6
Transcrypt 3.9.0
Chrome/Firefox
Discovered an issue with
super()
call when the method is an alias identifier such asupdate
. If a subclass method callssuper().update()
it is translated to__super__ (SubCls, 'update') (self)
rather than using the aliaspy_update
and results inSuperclass method not found
error. There is no issue withCls.update(self)
call.test_super.py:
Environment: Linux Python 3.9.6 Transcrypt 3.9.0 Chrome/Firefox