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
8 var C = (function C_() {
13 CC.prototype.f = function CCf() {
23 function sentinel() {}
27 var script = Debug.findScript(sentinel);
29 var line_start = Debug.findScriptSourcePosition(script, line, 0);
30 var line_end = Debug.findScriptSourcePosition(script, line + 1, 0) - 1;
31 var actual = Debug.setBreakPointByScriptIdAndPosition(
32 script.id, line_start).actual_position;
33 // Make sure the actual break position is within the line where we set
35 assertTrue(line_start <= actual);
36 assertTrue(actual <= line_end);