includes function not work in dynamic param
HCLQ opened this issue · comments
I use the babel-preset-env@next
and set
"presets": [
[
"env",
{
"targets": {
"browsers": ["ie >=9"]
},
"useBuiltIns": "usage"
}
]
]
when use the [].includes or "".includes like this:
function test( param ){
var otherObject=someFn.get();
otherObject. includes (param);
}
test ("?")
in Ie it will throw an error the object has no includes function
This issue has been moved to babel/babel#6598.