This code comes from an externally managed library, available at . Bugs should be reported directly upstream and integrated back here. In order to regenerate this file, you need to do the following: $ git clone git@github.com:mathiasbynens/jsesc.git && cd jsesc $ grunt template $ export MOZ_JSESC="../mozilla-central/toolkit/modules/third_party/jsesc" $ cat $MOZ_JSESC/fx-header jsesc.js > $MOZ_JSESC/jsesc.js