// Copyright 2012 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.// Flags: --expose-debug-as debugvaro={f:function(x){vara=x+1;o=1;}}functionsentinel(){}varDebug=debug.Debug;Debug.setListener(function(){});varscript=Debug.findScript(sentinel);// Used in Debug.setScriptBreakPointById.varp=Debug.findScriptSourcePosition(script,9,0);varq=Debug.setBreakPointByScriptIdAndPosition(script.id,p).actual_position;varr=Debug.setBreakPointByScriptIdAndPosition(script.id,q).actual_position;assertEquals(q,r);functionassertLocation(p,l,c){varlocation=script.locationFromPosition(p,false);assertEquals(l,location.line);assertEquals(c,location.column);}assertLocation(p,9,0);assertLocation(q,9,4);assertLocation(r,9,4);