diff options
author | Johannes Ewald <johannes.ewald@peerigon.com> | 2018-04-24 14:29:51 +0300 |
---|---|---|
committer | Johannes Ewald <johannes.ewald@peerigon.com> | 2018-04-24 14:29:51 +0300 |
commit | 460dfd1eb65cff2935fae460a6c71b0171b226c7 (patch) | |
tree | 6d724a4b39df388ee7cde407ca6b9b05db019c87 /testLib/constModule.js | |
parent | 6ffd4d1405c9f812f7bcd3b915f4da262afec754 (diff) |
Fix const regex
Fixes an issue where const wasn't properly detected when using
destructering.
Diffstat (limited to 'testLib/constModule.js')
-rw-r--r-- | testLib/constModule.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testLib/constModule.js b/testLib/constModule.js index efff495..360a0f5 100644 --- a/testLib/constModule.js +++ b/testLib/constModule.js @@ -9,6 +9,7 @@ const g = "g"; const/*wtf this is valid*/h = "h"; const /*and this is also*/i = "i"; +const{k} = {k: "k"}; exports.a = function () { return a; @@ -40,3 +41,6 @@ exports.i = function () { exports.j = function () { return j; }; +exports.k = function () { + return k; +}; |