Skip to content

Commit b33faf5

Browse files
authored
Merge pull request #109 from Karang/master
Fix undefined destructuration errors
2 parents 3fd5825 + c5697bd commit b33faf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class Compiler {
220220
if (!functions[type]) {
221221
if (this.types[type] !== 'native') {
222222
functions[type] = this.compileType(this.types[type])
223-
if (functions[type].startsWith('ctx')) { functions[type] = this.wrapCode(functions[type]) }
223+
if (functions[type].startsWith('ctx')) { functions[type] = this.wrapCode('return ' + this.callType(functions[type].split('.')[1])) }
224224
if (!isNaN(functions[type])) { functions[type] = this.wrapCode(' return ' + functions[type]) }
225225
} else {
226226
functions[type] = `native.${type}`

0 commit comments

Comments
 (0)