_define-length.js 329 B

123456789101112
  1. 'use strict';
  2. module.exports = function (t, a) {
  3. var foo = 'raz', bar = 'dwa'
  4. , fn = function (a, b) { return this + a + b + foo + bar; }
  5. , result;
  6. result = t(fn, 3);
  7. a(result.call('marko', 'el', 'fe'), 'markoelferazdwa', "Content");
  8. a(result.length, 3, "Length");
  9. a(result.prototype, fn.prototype, "Prototype");
  10. };