test($compile): make IE8 happy

Closes #7828