diff options
Diffstat (limited to 'tests/manual/v4/instanceof.1.js')
-rw-r--r-- | tests/manual/v4/instanceof.1.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/manual/v4/instanceof.1.js b/tests/manual/v4/instanceof.1.js new file mode 100644 index 0000000000..d991574e66 --- /dev/null +++ b/tests/manual/v4/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) |