Home | History | Annotate | Download | only in regress
      1 // Copyright 2015 the V8 project authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 function Bar() { }
      6 function Baz() { }
      7 Baz.prototype = { __proto__: new Bar() }
      8 var x = new Baz();
      9 function foo(y) { return y instanceof Bar; }
     10 assertTrue(foo(x));
     11 Baz.prototype.__proto__ = null;
     12 assertFalse(foo(x));
     13