-
-
Notifications
You must be signed in to change notification settings - Fork 919
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
Support older browsers without Proxy #3155
Comments
As for IE support: We wont add support for it in current versions of faker. Please try downgrading faker js/polyfilling and see whether it works. Please note that old browsers will probably fail on other JS features we use as well. Our code works on most modern browsers, if not please report any broken methods. The somewhat planned faker v10 might be without the proxy behavior or at least could be triggered without it due to the standalone module functions. |
@Murreey, some questions from my side:
|
|
Could you please open an issue in that repo, so they know it is a requested feature? |
It's in maintenance mode unfortunately. There's an issue #77 which is about a similar problem that might offer a solution though. Not certain, but I can't see anywhere in Faker that actually needs those handlers to work - making the polyfill ignore the error rather than throwing might be enough to at least get it working. |
If you need to support old browsers then running everything client-side may not be the best option. If it's a possibility for your application you could say run a tiny node.js server which exposes endpoints for the specific Faker data you need. Then it will work with any browser. |
We're using Faker in browser, and need to support older browsers that do not have
Proxy
(including all IE versions). As Faker relies on that for the LocaleProxy, it doesn't work in those browsers.Is there any scope for Faker to be able to support those browsers? I don't have any suggestions for what that would be, but maybe some sort of browser feature detection or disabling the locale functionality.
Google's proxy-polyfill doesn't cover the
has
ordeleteProperty
handlers, so doesn't work for Faker's use case. (Unless an option is to stop using those handlers?)The text was updated successfully, but these errors were encountered: