Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Ewald <johannes.ewald@peerigon.com>2018-04-10 00:54:34 +0300
committerJohannes Ewald <johannes.ewald@peerigon.com>2018-04-10 00:54:34 +0300
commit13cb24e35f670343d9ea6959f544e1d30cf8ea12 (patch)
treeed1689d1d0a2021d0a16221d54d167e68f9af3cc /testLib/throwError.js
parent9b77ed9a293c538ec3eb5160bcb933e012ce517f (diff)
Maintain column width when transforming consts
Diffstat (limited to 'testLib/throwError.js')
-rw-r--r--testLib/throwError.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/testLib/throwError.js b/testLib/throwError.js
index e85ea36..0993618 100644
--- a/testLib/throwError.js
+++ b/testLib/throwError.js
@@ -1,8 +1,7 @@
// Using deliberately const here because we know that we're transform const to let
-const test = 1;
+const a = "a";
module.exports = function () {
- let test = 1;
-
- throw new Error();
+ // Ensure that column numbers are correct
+ const b = "b"; throw new Error();
};