IE has an additional `typeof` value: `unknown` #1425

Closed
mgol opened this Issue Dec 17, 2013 · 5 comments

Comments

Projects
None yet
4 participants
Contributor

mgol commented Dec 17, 2013

IE recognizes an additional typeof value: unknown, see:
http://stackoverflow.com/a/10982960/369687
Sometimes it might be desirable to check for this non-standard value. Besides, it's unlikely to make a typo in another value and get unknown, it's too different from the rest.

You might want to consider allowing such a value.

Owner

valueof commented Dec 18, 2013

What IE versions implement JScript version 8?

Contributor

mgol commented Dec 18, 2013

There seems to be no version 8: http://en.wikipedia.org/wiki/JScript#JScript so I guess they meant IE8.

wow... i never knew such a thing existed but now i've seen it for myself https://saucelabs.com/jobs/7942d7d475ea466f8917e523bb75cf00

Owner

valueof commented Dec 19, 2013

Alrighty then.

Contributor

kangax commented Jan 24, 2014

Would be a welcome addition. I worked around this in Fabric by changing string into identifier :)

valueof closed this Jan 24, 2014

mgol referenced this issue in eslint/eslint May 21, 2014

Closed

valid-typeof: support 'unknown' #911

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment