Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

IE 10-11 not polyfilling (Number.parseInt, Number.parseFloat) #385

Closed
marchys opened this issue Aug 3, 2017 · 3 comments
Closed

IE 10-11 not polyfilling (Number.parseInt, Number.parseFloat) #385

marchys opened this issue Aug 3, 2017 · 3 comments

Comments

@marchys
Copy link

marchys commented Aug 3, 2017

Using:

  presets: [
    [
      'env',
      {
        targets: {
          ie: 10,
          ios: 10,
          android: '4.2',
        },
        useBuiltIns: true,
        debug: true
      },
    ]

It does not add (parseInt, parseFloat) to Number. As I haven't seen that in "built-in-features.js" I can assume this is an expected behaviour and the global (parseInt, parseFloat) should be used instead?

@xtuc
Copy link
Member

xtuc commented Aug 3, 2017

Could you please share the output of the debug mode?

@marchys
Copy link
Author

marchys commented Aug 3, 2017

babel-preset-env: `DEBUG` option

Using targets:
{
  "ie": "10",
  "ios": "10",
  "android": "4.2"
}

Modules transform: commonjs

Using plugins:
  check-es2015-constants {"ie":"10","android":"4.2"}
  transform-es2015-arrow-functions {"ie":"10","android":"4.2"}
  transform-es2015-block-scoped-functions {"ie":"10","android":"4.2"}
  transform-es2015-block-scoping {"ie":"10","android":"4.2"}
  transform-es2015-classes {"ie":"10","android":"4.2"}
  transform-es2015-computed-properties {"ie":"10","android":"4.2"}
  transform-es2015-destructuring {"ie":"10","android":"4.2"}
  transform-es2015-duplicate-keys {"ie":"10","android":"4.2"}
  transform-es2015-for-of {"ie":"10","android":"4.2"}
  transform-es2015-function-name {"ie":"10","android":"4.2"}
  transform-es2015-literals {"ie":"10","android":"4.2"}
  transform-es2015-object-super {"ie":"10","android":"4.2"}
  transform-es2015-parameters {"ie":"10","android":"4.2"}
  transform-es2015-shorthand-properties {"ie":"10","android":"4.2"}
  transform-es2015-spread {"ie":"10","android":"4.2"}
  transform-es2015-sticky-regex {"ie":"10","android":"4.2"}
  transform-es2015-template-literals {"ie":"10","android":"4.2"}
  transform-es2015-typeof-symbol {"ie":"10","android":"4.2"}
  transform-es2015-unicode-regex {"ie":"10","android":"4.2"}
  transform-regenerator {"ie":"10","android":"4.2"}
  transform-exponentiation-operator {"ie":"10","ios":"10","android":"4.2"}
  transform-async-to-generator {"ie":"10","ios":"10","android":"4.2"}
  syntax-trailing-function-commas {"ie":"10","android":"4.2"}

Using polyfills:
  es6.typed.array-buffer {"ie":"10","android":"4.2"}
  es6.typed.int8-array {"ie":"10","android":"4.2"}
  es6.typed.uint8-array {"ie":"10","android":"4.2"}
  es6.typed.uint8-clamped-array {"ie":"10","android":"4.2"}
  es6.typed.int16-array {"ie":"10","android":"4.2"}
  es6.typed.uint16-array {"ie":"10","android":"4.2"}
  es6.typed.int32-array {"ie":"10","android":"4.2"}
  es6.typed.uint32-array {"ie":"10","android":"4.2"}
  es6.typed.float32-array {"ie":"10","android":"4.2"}
  es6.typed.float64-array {"ie":"10","android":"4.2"}
  es6.map {"ie":"10","android":"4.2"}
  es6.set {"ie":"10","android":"4.2"}
  es6.weak-map {"ie":"10","android":"4.2"}
  es6.weak-set {"ie":"10","android":"4.2"}
  es6.reflect.apply {"ie":"10","android":"4.2"}
  es6.reflect.construct {"ie":"10","android":"4.2"}
  es6.reflect.define-property {"ie":"10","android":"4.2"}
  es6.reflect.delete-property {"ie":"10","android":"4.2"}
  es6.reflect.get {"ie":"10","android":"4.2"}
  es6.reflect.get-own-property-descriptor {"ie":"10","android":"4.2"}
  es6.reflect.get-prototype-of {"ie":"10","android":"4.2"}
  es6.reflect.has {"ie":"10","android":"4.2"}
  es6.reflect.is-extensible {"ie":"10","android":"4.2"}
  es6.reflect.own-keys {"ie":"10","android":"4.2"}
  es6.reflect.prevent-extensions {"ie":"10","android":"4.2"}
  es6.reflect.set {"ie":"10","android":"4.2"}
  es6.reflect.set-prototype-of {"ie":"10","android":"4.2"}
  es6.promise {"ie":"10","android":"4.2"}
  es6.symbol {"ie":"10","android":"4.2"}
  es6.object.assign {"ie":"10","android":"4.2"}
  es6.object.is {"ie":"10"}
  es6.object.set-prototype-of {"ie":"10","android":"4.2"}
  es6.function.name {"ie":"10","android":"4.2"}
  es6.string.raw {"ie":"10","android":"4.2"}
  es6.string.from-code-point {"ie":"10","android":"4.2"}
  es6.string.code-point-at {"ie":"10","android":"4.2"}
  es6.string.repeat {"ie":"10","android":"4.2"}
  es6.string.starts-with {"ie":"10","android":"4.2"}
  es6.string.ends-with {"ie":"10","android":"4.2"}
  es6.string.includes {"ie":"10","android":"4.2"}
  es6.regexp.flags {"ie":"10","android":"4.2"}
  es6.regexp.match {"ie":"10","android":"4.2"}
  es6.regexp.replace {"ie":"10","android":"4.2"}
  es6.regexp.split {"ie":"10","android":"4.2"}
  es6.regexp.search {"ie":"10","android":"4.2"}
  es6.array.from {"ie":"10","android":"4.2"}
  es6.array.of {"ie":"10","android":"4.2"}
  es6.array.copy-within {"ie":"10","android":"4.2"}
  es6.array.find {"ie":"10","android":"4.2"}
  es6.array.find-index {"ie":"10","android":"4.2"}
  es6.array.fill {"ie":"10","android":"4.2"}
  es6.array.iterator {"ie":"10","android":"4.2"}
  es6.number.is-finite {"ie":"10"}
  es6.number.is-integer {"ie":"10","android":"4.2"}
  es6.number.is-safe-integer {"ie":"10","android":"4.2"}
  es6.number.is-nan {"ie":"10"}
  es6.number.epsilon {"ie":"10","android":"4.2"}
  es6.number.min-safe-integer {"ie":"10","android":"4.2"}
  es6.number.max-safe-integer {"ie":"10","android":"4.2"}
  es6.math.acosh {"ie":"10","android":"4.2"}
  es6.math.asinh {"ie":"10","android":"4.2"}
  es6.math.atanh {"ie":"10","android":"4.2"}
  es6.math.cbrt {"ie":"10","android":"4.2"}
  es6.math.clz32 {"ie":"10","android":"4.2"}
  es6.math.cosh {"ie":"10","android":"4.2"}
  es6.math.expm1 {"ie":"10","android":"4.2"}
  es6.math.fround {"ie":"10","android":"4.2"}
  es6.math.hypot {"ie":"10","android":"4.2"}
  es6.math.imul {"ie":"10","android":"4.2"}
  es6.math.log1p {"ie":"10","android":"4.2"}
  es6.math.log10 {"ie":"10","android":"4.2"}
  es6.math.log2 {"ie":"10","android":"4.2"}
  es6.math.sign {"ie":"10","android":"4.2"}
  es6.math.sinh {"ie":"10","android":"4.2"}
  es6.math.tanh {"ie":"10","android":"4.2"}
  es6.math.trunc {"ie":"10","android":"4.2"}
  es7.array.includes {"ie":"10","android":"4.2"}
  es7.object.values {"ie":"10","ios":"10","android":"4.2"}
  es7.object.entries {"ie":"10","ios":"10","android":"4.2"}
  es7.object.get-own-property-descriptors {"ie":"10","ios":"10","android":"4.2"}
  es7.string.pad-start {"ie":"10","android":"4.2"}
  es7.string.pad-end {"ie":"10","android":"4.2"}
  web.timers {"ie":"10","ios":"10","android":"4.2"}
  web.immediate {"ie":"10","ios":"10","android":"4.2"}
  web.dom.iterable {"ie":"10","ios":"10","android":"4.2"}

@existentialism
Copy link
Member

@marchys thanks for the report! we'll update our mappings as soon as compat-table gets the data.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants