2021-09-22 10:39:41 -04:00
|
|
|
if (!window.WeakMap || !window.Promise || typeof globalThis === "undefined") {
|
2020-04-08 13:24:18 -04:00
|
|
|
window.unsupportedBrowser = true;
|
2020-04-29 14:40:21 -04:00
|
|
|
} else {
|
|
|
|
// Some implementations of `WeakMap.prototype.has` do not accept false
|
|
|
|
// values and Ember's `isClassicDecorator` sometimes does that (it only
|
|
|
|
// checks for `null` and `undefined`).
|
|
|
|
try {
|
|
|
|
new WeakMap().has(0);
|
|
|
|
} catch (err) {
|
|
|
|
window.unsupportedBrowser = true;
|
|
|
|
}
|
2020-04-08 13:24:18 -04:00
|
|
|
}
|