2d.layer.exceptions-are-no-op
Checks that the context state is left unchanged if beginLayer throws.