ajaxorg/ace — pull request #1165 by bcbailey (2012-12-18 17:09:45+00:00)
Title: Fix error in IE8 when escapeRules is not passed

IE8 throws an "Object expected" error when editing a file in PHP mode. This is because one of the calls to `embedRules` in the PHP mode is not passing in the `escapeRules` parameter so it is trying to call `apply` with an undefined value.

Example:
`Array.protoype.unshift.apply([], undefined);`

IE9+, Firefox, and Chrome do not have this issue.

To fix we just need to make sure `escapeRules` is defined before trying to adjust the rules.

A quick grep through the code shows that the JSP mode would have the same error.