Description[turbofan] Also recognize 'type' === typeof x.
So far we only recognized
typeof x == 'type'
typeof x != 'type'
typeof x === 'type'
typeof x !== 'type'
but some people seem to prefer it the other way around, i.e.
'type' == typeof x
'type' != typeof x
'type' === typeof x
'type' !== typeof x
as spotted in some Ember.js code, so we should obviously handle that as
well and reduce it to a quick check on x instead of calling the TypeOf
builtin and comparing the resulting string.
R=ishell@chromium.org
BUG=v8:5267
Review-Url: https://codereview.chromium.org/2642743003
Cr-Commit-Position: refs/heads/master@{#42478}
Committed: https://chromium.googlesource.com/v8/v8/+/ff46966d2d1eeac7289f6b72669f34826e40bd66
Patch Set 1 #
Messages
Total messages: 11 (7 generated)
|