-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object.hasOwn is not a function #1277
Comments
Object: hasOwn does not support safari <= 15.3 I think we can replace this line with const isLoaded = window['grecaptcha'] && (window.grecaptcha['execute'] instanceof Function) it may be a bad idea to avoid new features for supporting old browsers, so I use polyfills to fix it. {
targets: [
'last 2 versions and not dead',
'> 0.3%',
'Firefox ESR',
'iOS >= 13.2',
],
polyfills: [
'es.object.has-own',
],
modernPolyfills: [
'es.object.has-own',
],
} I don't know why |
Thanks for your reply! Currently, I am making a separate judgment. If But I think as a general-purpose library, it's important to consider some compatibility while using new features - after all, Safari Version <= 15.3 isn't too old. I also introduced |
Same bug, and DanSnow continue can't fix it? |
Same bug here |
Description
When using
Safari: Version 15.3 (17612.4.9.1.8) MacOS: 12.2.1 (21D62)
, visit the page of mine project, will show errorObject.hasOwn is not a function
on the page.Minimal Reproducible Example
Use not support
Object.hasOwn
browsers visit this library's official site, the example can not show on the page.System info
Safari: Version 15.3 (17612.4.9.1.8)
MacOS: 12.2.1 (21D62)
Maybe other not support function
Object.hasOwn
browsers...The text was updated successfully, but these errors were encountered: