diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-04-15 11:34:00 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-04-15 12:47:53 +0200 |
commit | 2cd8a90bd4d171ed2404822b6046455a94d4b6ed (patch) | |
tree | ed8eda56d54cb13d777be1cfa294c85ddd76e583 /tests/manual/v4/prototype.4.js | |
parent | 5bf33901429e64ab91f30037e25ec04aab4b4c11 (diff) | |
parent | bec019b5fe35e1701c944eb340df458d5e3d1cdb (diff) |
Merge branch 'master' of ssh://codereview.qt-project.org:29418/playground/v4vm into v4
This is the initial merge of the v4vm JS engine, designed specifically for QML.
The engine is tested on Linux and Mac OS X, works on x86, x86-64 and ARM.
Change-Id: I826b72cfa3d3575007b70d78604080582db568db
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/manual/v4/prototype.4.js')
-rw-r--r-- | tests/manual/v4/prototype.4.js | 9 |
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)) + |