From 7b5b236e1cd05a1a893fe03c2534edb96905fb5c Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 12 Apr 2018 23:18:38 -0400 Subject: [PATCH] update length sourcemap hack for v2 --- src/generators/nodes/EachBlock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generators/nodes/EachBlock.ts b/src/generators/nodes/EachBlock.ts index c267cb0d33..71ca47aa7e 100644 --- a/src/generators/nodes/EachBlock.ts +++ b/src/generators/nodes/EachBlock.ts @@ -126,7 +126,7 @@ export default class EachBlock extends Node { // hack the sourcemap, so that if data is missing the bug // is easy to find - let c = this.start + 3; + let c = this.start + 2; while (generator.source[c] !== 'e') c += 1; generator.code.overwrite(c, c + 4, 'length'); const length = `[✂${c}-${c+4}✂]`;