diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2012-05-29 10:20:28 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2012-05-29 10:20:28 +0200 |
commit | 8fa7463fb20d09f7a663d0d82a45bf1dd1f57f74 (patch) | |
tree | 69a05d145eff093a6841714ceee90f307364dabf /tests/instanceof.1.js | |
parent | 57e9010fb9c6838e211238a0ca617ff66e6679b9 (diff) |
Tests
Diffstat (limited to 'tests/instanceof.1.js')
-rw-r--r-- | tests/instanceof.1.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/instanceof.1.js b/tests/instanceof.1.js new file mode 100644 index 0000000000..d991574e66 --- /dev/null +++ b/tests/instanceof.1.js @@ -0,0 +1,9 @@ + +function foo() {} +foo.prototype = {} + +var f = new foo() +print(foo.prototype) +print(f.__proto__) +print(foo.prototype == f.__proto__) +print(f instanceof foo) |