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

new.target not supported by Safari, IE, and Edge #19

Closed
rmhrisk opened this issue Jan 11, 2017 · 1 comment
Closed

new.target not supported by Safari, IE, and Edge #19

rmhrisk opened this issue Jan 11, 2017 · 1 comment

Comments

@rmhrisk
Copy link
Contributor

rmhrisk commented Jan 11, 2017

It seems we use new.target, according to: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new.target

It is not supported by Safari, Edge, IE:
image

We are experiencing an error currently errors in workers as well as with UglifyJS on on IE, as is expected as a result.

I would have assumed the transpile would have moved to:

this.constructor.name === "ClassName"

For this but it seemed not to.

This bug is to track this issue.

@YuryStrozhevsky
Copy link
Contributor

Seems there is no elegant way how to replace the "new.target". Thus I decided to just remove it - in fact the "new.target" needs only for additional "smart protection" from making abstract class and nothing else. So, it could be removed without any "side effects".

Solved in latest release.

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

No branches or pull requests

2 participants