Skip to content

[CLEANUP] Cleanup IE11 leftovers#19667

Merged
mixonic merged 6 commits intoemberjs:masterfrom
simonihmig:ie-cleanup2
Jul 20, 2021
Merged

[CLEANUP] Cleanup IE11 leftovers#19667
mixonic merged 6 commits intoemberjs:masterfrom
simonihmig:ie-cleanup2

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.
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