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:
Diffstat (limited to 'testLib/constModule.js')
-rw-r--r--testLib/constModule.js49
1 files changed, 39 insertions, 10 deletions
diff --git a/testLib/constModule.js b/testLib/constModule.js
index 77396d9..efff495 100644
--- a/testLib/constModule.js
+++ b/testLib/constModule.js
@@ -1,13 +1,42 @@
-const someOtherModule = require("./someOtherModule");
-const language = "nl";
+const j = "j"; // At the beginning of the file
+// This module contains some weird combinations where valid const declarations could appear.
+// Syntax oddities are totally on purpose here.
+const a = require("./someOtherModule");const b = "b"; const e = "e"
+const c = "c";
+{}const d = "d";
+ const f = "f"; // there's an irregular whitespace before and after const
+const
+g = "g";
+const/*wtf this is valid*/h = "h";
+const /*and this is also*/i = "i";
-exports.getLang = () => {
- return language;
+exports.a = function () {
+ return a;
};
-
-exports.getOtherModuleName = () => {
- return someOtherModule.name;
+exports.b = function () {
+ return b;
+};
+exports.c = function () {
+ return c;
+};
+exports.d = function () {
+ return d;
+};
+exports.e = function () {
+ return e;
+};
+exports.f = function () {
+ return f;
+};
+exports.g = function () {
+ return g;
+};
+exports.h = function () {
+ return h;
+};
+exports.i = function () {
+ return i;
+};
+exports.j = function () {
+ return j;
};
-
-exports.filename = __filename;
-exports.dirname = __dirname;