1
// Copyright 2014 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.
5
// Flags: --allow-natives-syntax
7
function t1() { return this instanceof t1; }
8
function t2() { return this instanceof t2; }
10
var o1 = new (function() { })();
11
Object.defineProperty(o1, "t", {get:function() { return this instanceof o1.constructor; }});
12
var o2 = new (function() { })();
13
Object.defineProperty(o2, "t", {get:function() { return this instanceof o1.constructor; }});
14
var o3 = new (function() { })();
18
return 1 + (o.t ? 1 : 2);
24
%OptimizeFunctionOnNextCall(f);