Source
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Polyfill
if (typeof Object.assign !== 'function') {
// Must be writable: true, enumerable: false, configurable: true
Object.defineProperty(Object, "assign", {
value: function assign(target, varArgs) { // .length of function is 2
'use strict';
if (target === null || target === undefined) {
throw new TypeError('Cannot convert undefined or null to object');
}
var to = Object(target);
for (var index = 1; index < arguments.length; index++) {
var nextSource = arguments[index];
if (nextSource !== null && nextSource !== undefined) {
for (var nextKey in nextSource) {
// Avoid bugs when hasOwnProperty is shadowed
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
to[nextKey] = nextSource[nextKey];
}
}
}
}
return to;
},
writable: true,
configurable: true
});}
On Thursday, 9 July 2020 11:04:32 UTC+1, Angelo Palumbo wrote:
>
> Can you post the code, please?
>
> Il giorno giovedì 9 luglio 2020 11:57:21 UTC+2, Takuma Hashimoto ha
> scritto:
>>
>> We also faced the issue. So we inserted Object.assign polyfill
>> <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Polyfill>
>> just
>> in front of `google.charts.load(...)` and solved this.
>>
>> On Thursday, July 9, 2020 at 6:50:08 PM UTC+9 Tedd Mason wrote:
>>
>>> Our service is also having the same issue for internet explorer since
>>> yesterday.
>>>
>>>
>>> On Thursday, 9 July 2020 10:47:02 UTC+1, Philippe Debrabant wrote:
>>>>
>>>> And trying to load a previous version don't work as the same
>>>> "Object.assign" code is called in
>>>> https://www.gstatic.com/charts/loader.js:90:18
>>>>
>>>> Le jeudi 9 juillet 2020 à 11:15:58 UTC+2, Philippe Debrabant a écrit :
>>>>
>>>>> Me too, "Object.assign" is not supported by Internet Explorer.
>>>>>
>>>>>
>>>>> https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Object/assign#Compatibilit%C3%A9_des_navigateurs
>>>>>
>>>>> Le jeudi 9 juillet 2020 10:28:20 UTC+2, Angelo Palumbo a écrit :
>>>>>>
>>>>>> Hi all, starting today Internet Explorer 11 returns the error "Object
>>>>>> doesn't support 'assign' property or method" when I try to create a line
>>>>>> chart with loader.js. Has ever happened to you?
>>>>>>
>>>>>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/84378920-3a86-47b3-bbb9-b895f4b108b0o%40googlegroups.com.