Add IE fallback for lack of Function#name.

Former-commit-id: 42047271fe596ed064ce2b1a58b70e6c6cd8a4af
This commit is contained in:
John-David Dalton
2013-08-27 22:24:46 -07:00
parent db605ea7ca
commit c6e2e33e87
7 changed files with 166 additions and 111 deletions

View File

@@ -1791,6 +1791,8 @@
* @returns {string} Returns the modified source.
*/
function removeEsOptimization(source) {
source = removeSupportProp(source, 'funcNames');
// remove `__bindData__` logic and `setBindData` function calls from `createBound`
source = source.replace(matchFunction(source, 'createBound'), function(match) {
return match