files/en-us/mozilla/firefox/releases/39/index.md
Firefox 39 was released on July 2, 2015. This article lists key changes that are useful not only for web developers, but also Firefox and Gecko developers as well as add-on developers.
Highlights:
All devtools bugs fixed between Firefox 38 and Firefox 39.
switch, is now supported (Firefox bug 1136563).<link rel="preconnect"> allowing to anticipate a future connection without revealing any information has been implemented (Firefox bug 1135160).The RegExp constructor no longer throws when the first argument is a RegExp and the second flags argument is present (Firefox bug 1108949).
The Object.prototype.__noSuchMethod__ property is now deprecated and throws a console warning (see Firefox bug 1140428 and this platform announcement).
The implementation of the {{jsxref("Proxy")}} object has been updated to comply more with the ES2015 specification:
true to be successful, otherwise a {{jsxref("TypeError")}} exception will be thrown in strict mode (Firefox bug 1132522).TypeError (Firefox bug 828137).When using arrow functions (=>), a line terminator (\n) is no longer allowed after arrow function arguments (() \n => {}) (Firefox bug 1141392).
{{jsxref("RegExp.prototype.toString")}} is now a generic function (Firefox bug 1079919).
The non-standard flags argument of {{jsxref("String.prototype.match()")}}, {{jsxref("String.prototype.search()")}}, and {{jsxref("String.prototype.replace()")}} is now deprecated and throws a console warning (Firefox bug 1142351).
The try/catch behavior of {{jsxref("Object.assign()")}} has been removed to conform with the latest ES2015 draft (Firefox bug 1103344).
CanvasRenderingContext2D.addHitRegion() method now accepts a path option, which allows you to add hit regions to {{domxref("Path2D")}} objects (Firefox bug 1129147).FormData is now supported in Web workers (Firefox bug 739173).XMLHttpRequest.sendAsBinary() method has been removed.
Refer to the Sending and Receiving Binary Data documentation for alternatives (Firefox bug 853162).No change.
No change.
No change.
-remote command-line option has been removed (Firefox bug 1080319).No change.
No change.