Commit 0fa776f7 authored by Iuri Matias's avatar Iuri Matias

add missing new param to offsetToLineColumn

parent d7a7d798
...@@ -57,7 +57,7 @@ Debugger.prototype.registerAndHighlightCodeItem = function (index) { ...@@ -57,7 +57,7 @@ Debugger.prototype.registerAndHighlightCodeItem = function (index) {
if (error) return console.log(error) if (error) return console.log(error)
self.debugger.callTree.sourceLocationTracker.getSourceLocationFromVMTraceIndex(address, index, self.compiler.lastCompilationResult.data.contracts, function (error, rawLocation) { self.debugger.callTree.sourceLocationTracker.getSourceLocationFromVMTraceIndex(address, index, self.compiler.lastCompilationResult.data.contracts, function (error, rawLocation) {
if (!error && self.compiler.lastCompilationResult && self.compiler.lastCompilationResult.data) { if (!error && self.compiler.lastCompilationResult && self.compiler.lastCompilationResult.data) {
var lineColumnPos = self.offsetToLineColumnConverter.offsetToLineColumn(rawLocation, rawLocation.file, self.compiler.lastCompilationResult.source.sources) var lineColumnPos = self.offsetToLineColumnConverter.offsetToLineColumn(rawLocation, rawLocation.file, self.compiler.lastCompilationResult.source.sources, self.compiler.lastCompilationResult.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])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment