結果 : throw error and return value javascript