Commit 1204776a authored by yann300's avatar yann300

add check

parent 4383b4a2
......@@ -63,8 +63,8 @@ class ContextualListener {
}
_highlight (node, compilationResult) {
var src = node.src
var position = this.sourceMappingDecoder.decode(src)
if (!node) return
var position = this.sourceMappingDecoder.decode(node.src)
var eventId = this._api.highlight(position, node)
if (eventId) {
this._activeHighlights.push({ eventId, position, fileTarget: compilationResult.source.target })
......
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