aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/library/modules/_flags.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/library/modules/_flags.js')
-rw-r--r--node_modules/core-js/library/modules/_flags.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/core-js/library/modules/_flags.js b/node_modules/core-js/library/modules/_flags.js
new file mode 100644
index 00000000..b6fc324b
--- /dev/null
+++ b/node_modules/core-js/library/modules/_flags.js
@@ -0,0 +1,13 @@
+'use strict';
+// 21.2.5.3 get RegExp.prototype.flags
+var anObject = require('./_an-object');
+module.exports = function () {
+ var that = anObject(this);
+ var result = '';
+ if (that.global) result += 'g';
+ if (that.ignoreCase) result += 'i';
+ if (that.multiline) result += 'm';
+ if (that.unicode) result += 'u';
+ if (that.sticky) result += 'y';
+ return result;
+};