aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/v4/instanceof.1.js
blob: d991574e6664c39196148a41596fec423ed1b746 (plain)
1
2
3
4
5
6
7
8
9

function foo() {}
foo.prototype = {}

var f = new foo()
print(foo.prototype)
print(f.__proto__)
print(foo.prototype == f.__proto__)
print(f instanceof foo)