Affecting RegExp.source has become prototype accessor property

Published: | Categories: JavaScript


The source property on the RegExp instance has been moved to the prototype accessors, so it’s now the RegExp.prototype.source property. This change was originally made to Firefox 38 along with other properties but has been backed out due to Web compatibility issues. If you are using ClojureScript, you have to update the library to the latest version or your app may be broken on Firefox 41 and later.