1
0

is-implemented.js 344 B

12345678910
  1. 'use strict';
  2. module.exports = function () {
  3. var dummyRegExp = /a/;
  4. // We need to do check on instance and not on prototype due to how ES2015 spec evolved:
  5. // https://github.com/tc39/ecma262/issues/262
  6. // https://github.com/tc39/ecma262/pull/263
  7. // https://bugs.chromium.org/p/v8/issues/detail?id=4617
  8. return 'sticky' in dummyRegExp;
  9. };