OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 // Flags: --allow-natives-syntax |
| 6 |
| 7 function foo() {} |
| 8 foo.__defineGetter__(undefined, function() {}) |
| 9 |
| 10 function bar() {} |
| 11 function baz(x) { return x instanceof bar }; |
| 12 %OptimizeFunctionOnNextCall(baz); |
| 13 baz(); |
| 14 Object.setPrototypeOf(bar, null); |
| 15 bar[Symbol.hasInstance] = function() { return true }; |
| 16 assertTrue(baz()); |
OLD | NEW |