Closed Justinidlerz closed 7 years ago
And the DispHTMLWindow2 function call type is [object Object]
I'm confused, what's "DispHTMLWindow2"? window
should report [object Window]
.
Is this normal IE 8, or is it in compatibility mode?
Also, can you show me the code that triggers this?
I'm so sorry for new this issues.
The bug is not cause from es5-shim
But the same code can run >= ie9, (PS: not add es5-shim
).
The bug cause from like this code:
var $ = require('jquery');
var getData = function(url, data, callback) {
return $.ajax({
url: url,
dataType: 'jsonp',
data: data,
success: function(){ //... }
})
}
getData('//test.domain.com/jsonp', { a: 1 }, function (){
});
// throw error, because the data i pass a function
getData('//test.domain.com/jsonp', function(){
});
Function.prototype.bind throw a TypeError
[Object DispHTMLWindow2]
is not inisCallable
function judgment types