aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/v4/prototype.3.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/v4/prototype.3.js')
-rw-r--r--tests/manual/v4/prototype.3.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/manual/v4/prototype.3.js b/tests/manual/v4/prototype.3.js
new file mode 100644
index 0000000000..b76f544ee3
--- /dev/null
+++ b/tests/manual/v4/prototype.3.js
@@ -0,0 +1,10 @@
+
+function foo() {
+ this.stuff()
+}
+
+foo.prototype.stuff = function() {
+ print("this is cool stuff")
+}
+
+f = new foo()