unwrapExternalFunctionType method
Using unwrapper to turn a script function into a external function
Implementation
Function unwrapExternalFunctionType(HTFunction func) {
if (!externalFunctionTypedefs.containsKey(func.externalTypeId)) {
throw HTError.undefinedExternal(func.externalTypeId!);
}
final unwrapFunc = externalFunctionTypedefs[func.externalTypeId]!;
return unwrapFunc(func);
}