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

IE8 instanceof is failed #1266

Closed
musicode opened this issue Jan 16, 2017 · 3 comments
Closed

IE8 instanceof is failed #1266

musicode opened this issue Jan 16, 2017 · 3 comments

Comments

@musicode
Copy link

class ClassName() {

}

source version

var ClassName = function ClassName() {

}

compressd version

var a = function b() {
    // this instanceof a is true
   //  this instanceof b is false
}
@fregante
Copy link

I don't think is is due to rollup because rollup won't change class to function.

Perhaps it's babel or buble.

@elasim
Copy link

elasim commented Jul 2, 2017

@musicode
Use this, https://babeljs.io/docs/plugins/transform-jscript/
this plugin will prevent some jscript issues.

@VIGDXX
Copy link

VIGDXX commented Jul 10, 2019

@musicode thanks

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

4 participants