add missing new param to offsetToLineColumn

pull/1/head
Iuri Matias 6 years ago committed by yann300
parent b4e0e0305b
commit 92ea82dd9f
  1. 6
      src/app/debugger/debugger/debugger.js

@ -61,11 +61,9 @@ Debugger.prototype.registerAndHighlightCodeItem = function (index) {
if (!self._deps.compilersArtefacts['__last']) return if (!self._deps.compilersArtefacts['__last']) return
self.debugger.traceManager.getCurrentCalledAddressAt(index, (error, address) => { self.debugger.traceManager.getCurrentCalledAddressAt(index, (error, address) => {
if (error) return console.log(error) if (error) return console.log(error)
var compilerData = self._deps.compilersArtefacts['__last'].getdata() self.debugger.callTree.sourceLocationTracker.getSourceLocationFromVMTraceIndex(address, index, self.compiler.lastCompilationResult.data.contracts, function (error, rawLocation) {
if (!compilerData) return
self.debugger.callTree.sourceLocationTracker.getSourceLocationFromVMTraceIndex(address, index, compilerData.contracts, function (error, rawLocation) {
if (!error) { if (!error) {
var lineColumnPos = self._deps.offsetToLineColumnConverter.offsetToLineColumn(rawLocation, rawLocation.file, compilerData.source.sources) var lineColumnPos = self.offsetToLineColumnConverter.offsetToLineColumn(rawLocation, rawLocation.file, compilerData.source.sources, compilerData.data.sources)
self.event.trigger('newSourceLocation', [lineColumnPos, rawLocation]) self.event.trigger('newSourceLocation', [lineColumnPos, rawLocation])
} else { } else {
self.event.trigger('newSourceLocation', [null]) self.event.trigger('newSourceLocation', [null])

Loading…
Cancel
Save