The code generator checked is_object() to detect Promise return types, but Promise<T> is a ParameterizedType, so the check always failed and caused crashes in WebContent in throwing callback functions.