Test the Function.prototype.call
authorRoberto Raggi <roberto.raggi@nokia.com>
Mon, 21 May 2012 13:08:35 +0000 (15:08 +0200)
committerRoberto Raggi <roberto.raggi@nokia.com>
Mon, 21 May 2012 13:08:35 +0000 (15:08 +0200)
tests/fun.4.js [new file with mode: 0644]

diff --git a/tests/fun.4.js b/tests/fun.4.js
new file mode 100644 (file)
index 0000000..fe0b704
--- /dev/null
@@ -0,0 +1,8 @@
+
+function foo(a,b,c) {
+    print("hello",a,b,c)
+}
+
+foo.call = Function.prototype.call
+foo.call(null, 1,2,3)
+