We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c692c88 commit 024d442Copy full SHA for 024d442
implementation.js
@@ -6,7 +6,7 @@ var $TypeError = require('es-errors/type');
6
var $Object = Object;
7
8
module.exports = setFunctionName(function flags() {
9
- if (this != null && this !== $Object(this)) {
+ if (this == null || this !== $Object(this)) {
10
throw new $TypeError('RegExp.prototype.flags getter called on non-object');
11
}
12
var result = '';
0 commit comments