"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const index = require("../set-function-name/index.cjs");
const type = require("../es-errors/type.cjs");
var setFunctionName = index.setFunctionName;
var $TypeError = type.type;
var $Object = Object;
var implementation = setFunctionName(function flags() {
  if (this == null || this !== $Object(this)) {
    throw new $TypeError("RegExp.prototype.flags getter called on non-object");
  }
  var result = "";
  if (this.hasIndices) {
    result += "d";
  }
  if (this.global) {
    result += "g";
  }
  if (this.ignoreCase) {
    result += "i";
  }
  if (this.multiline) {
    result += "m";
  }
  if (this.dotAll) {
    result += "s";
  }
  if (this.unicode) {
    result += "u";
  }
  if (this.unicodeSets) {
    result += "v";
  }
  if (this.sticky) {
    result += "y";
  }
  return result;
}, "get flags", true);
exports.implementation = implementation;
//# sourceMappingURL=implementation.cjs.map
