-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Next 9.5.4] Symbol.prototype.description polyfill raises TypeError #17825
Comments
+1 |
Thanks to Sentry we're noticing a GTM script is crashing in production in Safari v11 due to this. |
I'm noticing a similar issue on my end with Next 9.5.4. When I run EDIT: Found that downgrading to Next 9.5.0 works |
Could someone please send a PR fixing this? |
Firefox 61: <img width="513" alt="Screen Shot 2020-10-28 at 5 28 30 PM" src="https://user-images.githubusercontent.com/105127/97498751-1a51be00-1943-11eb-977a-832123363cef.png"> Chrome 61: <img width="548" alt="Screen Shot 2020-10-28 at 5 26 55 PM" src="https://user-images.githubusercontent.com/105127/97498755-1c1b8180-1943-11eb-8423-bc4e044a1b00.png"> Safari 11: <img width="477" alt="Screen Shot 2020-10-28 at 5 23 06 PM" src="https://user-images.githubusercontent.com/105127/97498761-1d4cae80-1943-11eb-9de2-e6b26644110a.png"> Fixes #17825
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
The
Symbol.prototype.description
polyfill raises TypeError in Safari 11 or any other browser that does not supportSymbol.prototype.description
natively.To Reproduce
npx create-next-app nextjs-blog --use-npm --example "https://github.com/vercel/next-learn-starter/tree/a24ee6c823/learn-starter" && cd nextjs-blog && npm install [email protected] && npm run dev
)Symbol.iterator.description
in the consoleTypeError: Cannot convert a symbol to a string
is raisedExpected behavior
Symbol.iterator.description === 'Symbol.iterator'
Screenshots
System information
Additional context
next.js/packages/next-polyfill-module/src/index.js
Lines 32 to 38 in 1c4aecb
/\((.+)\)/.exec(this)[1]
will not work on any browser asRegExp.prototype.exec
is spec'd to convert the argument to a string with the abstract operationToString
andToString(symbol)
throws aTypeError
exception. See https://tc39.es/ecma262/#sec-regexp.prototype.exec and https://tc39.es/ecma262/#sec-tostring .The text was updated successfully, but these errors were encountered: