]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/instanceof/instanceof-003.js
1b0a01b5987f14189abefafb2db2bda233ffba91
2 File Name: instanceof-003.js
4 Description: http://bugzilla.mozilla.org/show_bug.cgi?id=7635
9 js> Foo.prototype = theproto
11 js> theproto instanceof Foo
14 I think this should be 'false'
17 Author: christine@netscape.com
18 Date: 12 november 1997
20 var SECTION
= "instanceof-003";
21 var VERSION
= "ECMA_2";
22 var TITLE
= "instanceof operator";
23 var BUGNUMBER
="http://bugzilla.mozilla.org/show_bug.cgi?id=7635";
29 Foo
.prototype = theproto
;
32 "function Foo() = {}; theproto = {}; Foo.prototype = theproto; " +
33 "theproto instanceof Foo",
35 theproto
instanceof Foo
);
41 "o = {}; o instanceof o",