We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4a82135 + 9451d0c commit 28ceb35Copy full SHA for 28ceb35
src/compiler.js
@@ -220,7 +220,9 @@ class Compiler {
220
if (!functions[type]) {
221
if (this.types[type] !== 'native') {
222
functions[type] = this.compileType(this.types[type])
223
- if (functions[type].startsWith('ctx')) { functions[type] = this.wrapCode('return ' + this.callType(functions[type].split('.')[1])) }
+ if (functions[type].startsWith('ctx')) {
224
+ functions[type] = 'function () { return ' + functions[type] + '(...arguments) }'
225
+ }
226
if (!isNaN(functions[type])) { functions[type] = this.wrapCode(' return ' + functions[type]) }
227
} else {
228
functions[type] = `native.${type}`
0 commit comments