File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
js/js.translator/src/org/jetbrains/kotlin/js/translate/reference Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import com.google.dart.compiler.backend.js.ast.metadata.SideEffectKind
21
21
import com.google.dart.compiler.backend.js.ast.metadata.sideEffects
22
22
import com.intellij.util.SmartList
23
23
import org.jetbrains.kotlin.descriptors.ClassDescriptor
24
+ import org.jetbrains.kotlin.descriptors.FunctionDescriptor
24
25
import org.jetbrains.kotlin.descriptors.TypeParameterDescriptor
25
26
import org.jetbrains.kotlin.descriptors.ValueParameterDescriptor
26
27
import org.jetbrains.kotlin.js.translate.context.Namer
@@ -157,7 +158,11 @@ class CallArgumentTranslator private constructor(
157
158
}
158
159
}
159
160
160
- removeLastUndefinedArguments(result)
161
+ val callableDescriptor = resolvedCall.resultingDescriptor
162
+ if (callableDescriptor !is FunctionDescriptor || ! callableDescriptor.isSuspend) {
163
+ removeLastUndefinedArguments(result)
164
+ }
165
+
161
166
return ArgumentsInfo (result, hasSpreadOperator, cachedReceiver)
162
167
}
163
168
You can’t perform that action at this time.
0 commit comments