toString
function is override, toString(undefined)
return [object Window]
, not as expect
#30
Labels
toString
function is override, toString(undefined)
return [object Window]
, not as expect
#30
a few months ago, we use the polyfill service to generate a resource for Map&Set: https://cdn.polyfill.io/v2/polyfill.js?features=Map,Set&flags=always,gated. In order to solve the 'Map/Set is not defined' problems on old browsers, like Android 4.4
but, recently, we met a new problem, something not act as expect
in ios 8.1, we found the 'toString' function act different as other new ios versions
when we loaded the polyfill resource above, we found the
toString
was overridehttps://github.com/Financial-Times/polyfill-service/blob/master/packages/polyfill-library/polyfills/Symbol/polyfill.js#L215
toString(undefined)
return[object Window]
, not[object undefined]
, this result caused other problem in our project, so we wish u can solve this problem.finally, simulate the problem code line
![image](https://user-images.githubusercontent.com/2724034/43122622-53b979b0-8f54-11e8-8a19-e0622f05bbf6.png)
The text was updated successfully, but these errors were encountered: