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-exec-abstract.js 591B

12345678910111213141516171819202122
  1. var classof = require('./classof-raw');
  2. var regexpExec = require('./regexp-exec');
  3. // `RegExpExec` abstract operation
  4. // https://tc39.es/ecma262/#sec-regexpexec
  5. module.exports = function (R, S) {
  6. var exec = R.exec;
  7. if (typeof exec === 'function') {
  8. var result = exec.call(R, S);
  9. if (typeof result !== 'object') {
  10. throw TypeError('RegExp exec method returned something other than an Object or null');
  11. }
  12. return result;
  13. }
  14. if (classof(R) !== 'RegExp') {
  15. throw TypeError('RegExp#exec called on incompatible receiver');
  16. }
  17. return regexpExec.call(R, S);
  18. };