1
0

copy.js 467 B

12345678910111213141516171819
  1. 'use strict';
  2. module.exports = function (t, a) {
  3. var foo = 'raz', bar = 'dwa'
  4. , fn = function marko(a, b) { return this + a + b + foo + bar; }
  5. , result, o = {};
  6. fn.prototype = o;
  7. fn.foo = 'raz';
  8. result = t.call(fn);
  9. a(result.length, fn.length, "Length");
  10. a(result.name, fn.name, "Length");
  11. a(result.call('marko', 'el', 'fe'), 'markoelferazdwa', "Body");
  12. a(result.prototype, fn.prototype, "Prototype");
  13. a(result.foo, fn.foo, "Custom property");
  14. };