Skip to content
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

[CLEANUP] Cleanup IE11 leftovers #19667

Merged
merged 6 commits into from
Jul 20, 2021
Merged

Conversation

simonihmig
Copy link
Contributor

Reopened #19575

After dropping IE11 support, all supported browsers support symbols natively.
After dropping IE11 support, all supported browsers support proxies natively.
@@ -10,7 +10,7 @@ import Route from '../system/route';
import EmberRouter, { QueryParam } from '../system/router';
import { extractRouteArgs, resemblesURL, shallowEqual } from '../utils';

const ROUTER = symbol('ROUTER') as string;
const ROUTER = (symbol('ROUTER') as unknown) as string;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following up on #19575 (comment):

I get this TS error in my branch without it:

image

This comes from the change in https://github.com/emberjs/ember.js/pull/19667/files#diff-8519bc32ded2c3feefab86f01e1308398bacc99f2c10d4b28d372c0853d33203. The type of the exported symbol changed there, as the return type of the function is now always a native symbol (was string | symbol before).

@mixonic mixonic mentioned this pull request Jul 19, 2021
58 tasks
@mixonic mixonic merged commit 3ce13ce into emberjs:master Jul 20, 2021
@mixonic
Copy link
Member

mixonic commented Jul 20, 2021

Thank you @simonihmig !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants