aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/v4/prototype.4.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/v4/prototype.4.js')
-rw-r--r--tests/manual/v4/prototype.4.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/manual/v4/prototype.4.js b/tests/manual/v4/prototype.4.js
new file mode 100644
index 0000000000..9e4facb540
--- /dev/null
+++ b/tests/manual/v4/prototype.4.js
@@ -0,0 +1,9 @@
+
+function Point(x, y) {
+ this.x = x
+ this.y = y
+}
+
+var pt = new Point(10, 20)
+print(Point.prototype.isPrototypeOf(pt))
+