regenerator
regenerator copied to clipboard
Crashes with some polyfills: @@toStringTag is not writable.
Hello, I receive this error in console on Android Kitkat webviews:
Uncaught TypeError: Cannot assign to read only property '@@toStringTag' of [object Object]", source: http://192.168.1.23:5050/vendor.19.js
Troubles arise from this line: Gp[toStringTagSymbol] = "Generator";
because toStringTagSymbol
is not writable.
Some polyfills made it writable https://github.com/Financial-Times/polyfill-service/pull/1295 to make sure it works with regenerator
.
So I wrote about the issue here: https://github.com/medikoo/es6-symbol/issues/24, but apparently the spec wants @@toStringTag
to not be writable.
EDIT: I thought it was related to this polyfill I use
Is it possible to not overwrite @@toStringTag
?