test(es): Add tests for fixed issues (#3874)

This commit is contained in:
Donny/강동윤 2022-03-06 06:56:34 +09:00 committed by GitHub
parent cd06b0d354
commit 2605e132e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{
"module": {
"type": "commonjs"
},
"exclude": [
".*.js$"
],
"jsc": {
"parser": {
"syntax": "typescript"
},
"target": "es2016"
},
"sourceMaps": true
}

View File

@ -0,0 +1,6 @@
namespace A {
export const v = 25;
export function a() {
console.log(v);
}
}

View File

@ -0,0 +1,17 @@
{
"mappings": "Y;AAAA,GAAS;;QACQA,CAAC,MAADA,CAAC,GAAG,EAAE;aACHC,CAAC,GAAG,CAAC;QACjBC,OAAO,CAACC,GAAG,CAACH,CAAC,CAAC,CAAC;IACnB,CAAC;OAFeC,CAAC,GAADA,CAAC,A;GAFXG,CAAC,KAADA,CAAC,O",
"names": [
"v",
"a",
"console",
"log",
"A"
],
"sources": [
"../../input/index.ts"
],
"sourcesContent": [
"namespace A {\n export const v = 25;\n export function a() {\n console.log(v);\n }\n}"
],
"version": 3
}

View File

@ -0,0 +1,9 @@
"use strict";
var A;
(function(A1) {
var v = A1.v = 25;
function a() {
console.log(v);
}
A1.a = a;
})(A || (A = {}));

View File

@ -0,0 +1,18 @@
{
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": false
},
"target": "es5",
"loose": false,
"minify": {
"compress": false,
"mangle": false
}
},
"module": {
"type": "es6"
},
"minify": false
}

View File

@ -0,0 +1,5 @@
export module RuleInterpreterHelper {
export const fieldNameMap: [string, string][] = [];
export const fieldNameHashMap: Map<string, string> = new Map(fieldNameMap);
}

View File

@ -0,0 +1,5 @@
export var RuleInterpreterHelper;
(function(RuleInterpreterHelper1) {
var fieldNameMap = RuleInterpreterHelper1.fieldNameMap = [];
var fieldNameHashMap = RuleInterpreterHelper1.fieldNameHashMap = new Map(fieldNameMap);
})(RuleInterpreterHelper || (RuleInterpreterHelper = {}));