aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/test/function/_define-length.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es5-ext/test/function/_define-length.js')
-rw-r--r--node_modules/es5-ext/test/function/_define-length.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/es5-ext/test/function/_define-length.js b/node_modules/es5-ext/test/function/_define-length.js
new file mode 100644
index 00000000..324e273c
--- /dev/null
+++ b/node_modules/es5-ext/test/function/_define-length.js
@@ -0,0 +1,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");
+};