does not report failed to run function if runtime.current.spec is a hook