清空
This commit is contained in:
1 parent
7c2ab0b7ad
commit
cff33ad7d1
6370 files changed
+378844
-82245
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
var call = require('../internals/function-call');
|
||||
var hasOwn = require('../internals/has-own-property');
|
||||
var isPrototypeOf = require('../internals/object-is-prototype-of');
|
||||
var regExpFlags = require('../internals/regexp-flags');
|
||||
|
||||
var RegExpPrototype = RegExp.prototype;
|
||||
|
||||
module.exports = function (R) {
|
||||
var flags = R.flags;
|
||||
return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)
|
||||
? call(regExpFlags, R) : flags;
|
||||
};
|
||||
Reference in new issue
Block a user