Avoid using a getter for the compiler error's "stack" property

Instead, set the "stack" property manually when the error gets updated on re-throws.