]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-mode/node_modules/grim/node_modules/emissary/node_modules/es6-weak-map/node_modules/es5-ext/test/function/#/copy.js
7a22e2f249276ecbb1f98b1b9ee7db712ee87c06
[rbdr/dotfiles] / atom / packages / vim-mode / node_modules / grim / node_modules / emissary / node_modules / es6-weak-map / node_modules / es5-ext / test / function / # / copy.js
1 'use strict';
2
3 module.exports = function (t, a) {
4 var foo = 'raz', bar = 'dwa'
5 , fn = function marko(a, b) { return this + a + b + foo + bar; }
6 , result, o = {};
7
8 fn.prototype = o;
9
10 fn.foo = 'raz';
11
12 result = t.call(fn);
13
14 a(result.length, fn.length, "Length");
15 a(result.name, fn.name, "Length");
16 a(result.call('marko', 'el', 'fe'), 'markoelferazdwa', "Body");
17 a(result.prototype, fn.prototype, "Prototype");
18 a(result.foo, fn.foo, "Custom property");
19 };