es6.regexp.flags.js 208 Bytes Raw Blame History Permalink 1 2 3 4 5 6 // 21.2.5.3 get RegExp.prototype.flags() var $ = require('./$'); if(require('./$.descriptors') && /./g.flags != 'g')$.setDesc(RegExp.prototype, 'flags', { configurable: true, get: require('./$.flags') });