Commit 7f084a40 authored by aniket-engg's avatar aniket-engg Committed by Aniket

syntax highlighting fixed

parent e3187406
......@@ -38,7 +38,7 @@ function VmDebugger (vmDebuggerLogic) {
this.functionPanel = new FunctionPanel()
this.vmDebuggerLogic.event.register('functionsStackUpdate', (stack) => {
if (stack === null) return
if (stack === null || stack.length === 0) return
let functions = []
for (let func of stack) {
functions.push(func.functionDefinition.name + '(' + func.inputs.join(', ') + ')')
......
......@@ -20,8 +20,8 @@ export class OffsetToLineColumnConverter extends Plugin {
offsetToLineColumn (rawLocation, file, sources, asts) {
if (!this.lineBreakPositionsByContent[file]) {
const sourcesArray = Object.keys(sources)
if (!asts && file === 0 && sourcesArray.length === 1) {
// if we don't have ast, we process the only one available content
if (!asts || (file === 0 && sourcesArray.length === 1)) {
// if we don't have ast, we process the only one available content (applicable also for compiler older than 0.4.12)
this.lineBreakPositionsByContent[file] = this.sourceMappingDecoder.getLinebreakPositions(sources[sourcesArray[0]].content)
} else {
for (var filename in asts) {
......
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