We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This was originally reported in polyfillpolyfill/polyfill-service#2652
If requesting any property which exists on directly on Object.prototype such as:
'constructor',
'__defineGetter__'
'__defineSetter__'
'hasOwnProperty'
'__lookupGetter__'
'__lookupSetter__'
'isPrototypeOf'
'propertyIsEnumerable'
'toString'
'valueOf'
'__proto__'
'toLocaleString'
Then the library will throw an error instead of returning a polyfill bundle.
Running the below code will result in an error being thrown "TypeError: Cannot read property 'has' of undefined".
const polyfillLibrary = require('polyfill-library'); const options = { features: { 'constructor': {}, '__defineGetter__': {}, '__defineSetter__': {}, 'hasOwnProperty': {}, '__lookupGetter__': {}, '__lookupSetter__': {}, 'isPrototypeOf': {}, 'propertyIsEnumerable': {}, 'toString': {}, 'valueOf': {}, '__proto__': {}, 'toLocaleString': {}, }, uaString: 'ie/9' }; await polyfillLibrary.getPolyfills(options);
The text was updated successfully, but these errors were encountered:
use an object which has no prototype so that the only properties on t…
3c3fc4a
…he object are it's own and not those from Object.prototype -- Fixes #1137
0ef571b
Successfully merging a pull request may close this issue.
This was originally reported in polyfillpolyfill/polyfill-service#2652
What
If requesting any property which exists on directly on Object.prototype such as:
'constructor',
'__defineGetter__'
'__defineSetter__'
'hasOwnProperty'
'__lookupGetter__'
'__lookupSetter__'
'isPrototypeOf'
'propertyIsEnumerable'
'toString'
'valueOf'
'__proto__'
'toLocaleString'
Then the library will throw an error instead of returning a polyfill bundle.
Details
Running the below code will result in an error being thrown "TypeError: Cannot read property 'has' of undefined".
The text was updated successfully, but these errors were encountered: