Promise constification