We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c32be8e commit 7b61457Copy full SHA for 7b61457
polyfill.js
@@ -11,8 +11,8 @@ module.exports = function getPolyfill() {
11
if (
12
descriptor
13
&& typeof descriptor.get === 'function'
14
- && typeof RegExp.prototype.dotAll === 'boolean'
15
- && typeof RegExp.prototype.hasIndices === 'boolean'
+ && 'dotAll' in RegExp.prototype
+ && 'hasIndices' in RegExp.prototype
16
) {
17
/* eslint getter-return: 0 */
18
var calls = '';
@@ -27,6 +27,9 @@ module.exports = function getPolyfill() {
27
calls += 'y';
28
}
29
});
30
+
31
+ descriptor.get.call(o);
32
33
if (calls === 'dy') {
34
return descriptor.get;
35
0 commit comments