From 1a39d29fe556ff33d596898c9f9138329abb4710 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 4 Oct 2018 16:50:49 -0400 Subject: [PATCH] make linter happy --- src/app/debugger/debugger/debugger.js | 29 ++++++++++----------------- 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/src/app/debugger/debugger/debugger.js b/src/app/debugger/debugger/debugger.js index 8741c4be3d..7671e589f3 100644 --- a/src/app/debugger/debugger/debugger.js +++ b/src/app/debugger/debugger/debugger.js @@ -11,25 +11,18 @@ function Debugger (options) { var self = this this.event = new EventManager() - this._components = { - sourceHighlighter: sourceHighlighter - } - this._components.registry = globalRegistry - // dependencies - this._deps = { - offsetToLineColumnConverter: this._components.registry.get('offsettolinecolumnconverter').api, - editor: this._components.registry.get('editor').api, - compiler: this._components.registry.get('compiler').api, - compilersArtefacts: this._components.registry.get('compilersartefacts').api - } - this.debugger = new Ethdebugger( - { - executionContext: this.executionContext, - compilationResult: () => { - if (this._deps.compilersArtefacts['__last']) return this._deps.compilersArtefacts['__last'].getData() + this.executionContext = options.executionContext + this.offsetToLineColumnConverter = options.offsetToLineColumnConverter + this.compiler = options.compiler + this.compilerArtefacts = options.compilersArtefacts + + this.debugger = new Ethdebugger({ + executionContext: options.executionContext, + compilationResult: () => { + if (this.options.compilersArtefacts['__last']) return this.options.compilersArtefacts['__last'].getData() return null - } - }) + } + }) this.breakPointManager = new remixLib.code.BreakpointManager(this.debugger, (sourceLocation) => { return self._deps.offsetToLineColumnConverter.offsetToLineColumn(sourceLocation, sourceLocation.file, this._deps.compiler.lastCompilationResult.source.sources, this._deps.compiler.lastCompilationResult.data.sources)