Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

regexp-sticky-helpers.js 489B

12345678910111213141516171819
  1. var fails = require('../internals/fails');
  2. // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
  3. var RE = function (s, f) {
  4. return RegExp(s, f);
  5. };
  6. exports.UNSUPPORTED_Y = fails(function () {
  7. var re = RE('a', 'y');
  8. re.lastIndex = 2;
  9. return re.exec('abcd') != null;
  10. });
  11. exports.BROKEN_CARET = fails(function () {
  12. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  13. var re = RE('^r', 'gy');
  14. re.lastIndex = 2;
  15. return re.exec('str') != null;
  16. });