aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/test/function/_define-length.js
blob: 324e273c0240cbd47007e35bdf7a08acc6aee7b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"use strict";

module.exports = function (t, a) {
	var foo = "raz", bar = "dwa"
	  , fn = function (a, b) {
 return this + a + b + foo + bar;
}
	  , result;

	result = t(fn, 3);
	a(result.call("marko", "el", "fe"), "markoelferazdwa", "Content");
	a(result.length, 3, "Length");
	a(result.prototype, fn.prototype, "Prototype");
};