Front end of the Slack clone application.

valid-reg-exp.js 343B

1234567891011121314151617181920
  1. "use strict";
  2. module.exports = function (t, a) {
  3. var r = /raz/;
  4. a(t(r), r, "Direct");
  5. r = new RegExp("foo");
  6. a(t(r), r, "Constructor");
  7. a.throws(function () {
  8. t({});
  9. }, "Object");
  10. a.throws(function () {
  11. t(function () {});
  12. }, "Function");
  13. a.throws(function () {
  14. t({ exec: function () {
  15. return 20;
  16. } });
  17. }, "Plain object");
  18. };