123456789101112131415161718192021 |
- 'use strict';
- var GetIntrinsic = require('get-intrinsic');
- var $RegExp = GetIntrinsic('%RegExp%');
- var ToString = require('./ToString');
- module.exports = function RegExpCreate(P, F) {
-
-
-
- var pattern = typeof P === 'undefined' ? '' : ToString(P);
- var flags = typeof F === 'undefined' ? '' : ToString(F);
- return new $RegExp(pattern, flags);
- };
|