The source project of this merge request has been removed.
super function call with spread argument
Trying to fix #129 (closed).
Here again the problem description:
Transpilation of super.function(...args) calls is broken.
The problem is that super.foo(...args)
gets transpiled into
something like (ref = A.prototype).foo.apply.call(this, ref, args)
My solution:
- Added a test case.
-
CallExpression
: Done in the same way as you treat super() calls, detecting cases like 'super.foo', and settingsuperNode.noCall
Let me know if you think this is an adequate approach.