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: --expose-debug-as debug --allow-natives-syntax
9 function f() { return %_DebugIsActive() != 0; }
13 Debug.setListener(function() {});
15 Debug.setListener(null);
18 %OptimizeFunctionOnNextCall(f);
22 Debug.setListener(function() {});
26 Debug.setListener(null);