js-confuser-vm 0.0.9 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitmodules +4 -0
- package/CHANGELOG.md +125 -2
- package/README.md +128 -53
- package/bench.ts +146 -0
- package/disassemble.ts +12 -0
- package/dist/build-runtime.js +41 -15
- package/dist/compiler.js +328 -181
- package/dist/disassembler.js +317 -0
- package/dist/index.js +7 -2
- package/dist/runtime.js +255 -176
- package/dist/template.js +258 -0
- package/dist/transforms/bytecode/aliasedOpcodes.js +4 -1
- package/dist/transforms/bytecode/controlFlowFlattening.js +451 -0
- package/dist/transforms/bytecode/dispatcher.js +266 -0
- package/dist/transforms/bytecode/macroOpcodes.js +3 -3
- package/dist/transforms/bytecode/resolveConstants.js +100 -0
- package/dist/transforms/bytecode/resolveLabels.js +21 -18
- package/dist/transforms/bytecode/resolveRegisters.js +216 -0
- package/dist/transforms/bytecode/semanticOpcodes.js +162 -0
- package/dist/transforms/bytecode/specializedOpcodes.js +22 -12
- package/dist/transforms/bytecode/stringConcealing.js +110 -0
- package/dist/transforms/runtime/classObfuscation.js +43 -0
- package/dist/transforms/runtime/handlerTable.js +91 -0
- package/dist/transforms/runtime/semanticOpcodes.js +35 -0
- package/dist/transforms/runtime/specializedOpcodes.js +11 -5
- package/dist/types.js +42 -1
- package/dist/utils/ast-utils.js +14 -0
- package/dist/utils/op-utils.js +1 -2
- package/dist/utils/pass-utils.js +100 -0
- package/dist/utils/profile-utils.js +3 -0
- package/index.ts +22 -16
- package/jest.config.js +19 -2
- package/output.disassembled.js +41 -0
- package/package.json +2 -1
- package/src/build-runtime.ts +113 -78
- package/src/compiler.ts +2703 -2482
- package/src/disassembler.ts +329 -0
- package/src/index.ts +12 -2
- package/src/options.ts +8 -1
- package/src/runtime.ts +294 -180
- package/src/template.ts +265 -0
- package/src/transforms/bytecode/aliasedOpcodes.ts +5 -2
- package/src/transforms/bytecode/controlFlowFlattening.ts +566 -0
- package/src/transforms/bytecode/dispatcher.ts +292 -0
- package/src/transforms/bytecode/macroOpcodes.ts +4 -4
- package/src/transforms/bytecode/resolveLabels.ts +31 -27
- package/src/transforms/bytecode/resolveRegisters.ts +226 -0
- package/src/transforms/bytecode/specializedOpcodes.ts +27 -20
- package/src/transforms/bytecode/stringConcealing.ts +130 -0
- package/src/transforms/runtime/classObfuscation.ts +59 -0
- package/src/transforms/runtime/specializedOpcodes.ts +14 -9
- package/src/types.ts +106 -5
- package/src/utils/ast-utils.ts +19 -0
- package/src/utils/op-utils.ts +2 -2
- package/src/utils/pass-utils.ts +126 -0
- package/src/utils/profile-utils.ts +3 -0
- package/tsconfig.json +1 -1
- package/dist/transforms/utils/op-utils.js +0 -25
- package/dist/transforms/utils/random-utils.js +0 -27
- package/dist/utilts.js +0 -3
- package/src/transforms/bytecode/microOpcodes.ts +0 -291
- package/src/transforms/runtime/internalVariables.ts +0 -270
- package/src/transforms/runtime/microOpcodes.ts +0 -93
- /package/src/transforms/bytecode/{resolveContants.ts → resolveConstants.ts} +0 -0
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple bytecode disassembler for debugging.
|
|
3
|
+
*
|
|
4
|
+
* Takes the bytecode debug comment block (as generated by the compiler)
|
|
5
|
+
* and produces a flat pseudo-code listing with registers, gotos, and labels.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// Regex to match a single instruction line from the debug comment block.
|
|
9
|
+
// Groups: raw array, opcode name, annotation (rest of line after opcode name)
|
|
10
|
+
const INSTR_RE = /^\s*\/\/\s*\[([^\]]+)\],\s+(\w+)\s+(.*?)$/;
|
|
11
|
+
|
|
12
|
+
// Label line: // label_name:
|
|
13
|
+
const LABEL_RE = /^\s*\/\/\s*(\w+):$/;
|
|
14
|
+
|
|
15
|
+
interface ParsedInstr {
|
|
16
|
+
raw: number[];
|
|
17
|
+
opName: string;
|
|
18
|
+
annotation: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface Line {
|
|
22
|
+
kind: "label" | "instr";
|
|
23
|
+
label?: string;
|
|
24
|
+
instr?: ParsedInstr;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function parseBlock(commentBlock: string): Line[] {
|
|
28
|
+
const lines: Line[] = [];
|
|
29
|
+
for (const raw of commentBlock.split("\n")) {
|
|
30
|
+
const trimmed = raw.trim();
|
|
31
|
+
if (!trimmed || !trimmed.startsWith("//")) continue;
|
|
32
|
+
|
|
33
|
+
const instrMatch = trimmed.match(INSTR_RE);
|
|
34
|
+
if (instrMatch) {
|
|
35
|
+
const nums = instrMatch[1].split(",").map((s) => parseInt(s.trim(), 10));
|
|
36
|
+
lines.push({
|
|
37
|
+
kind: "instr",
|
|
38
|
+
instr: {
|
|
39
|
+
raw: nums,
|
|
40
|
+
opName: instrMatch[2],
|
|
41
|
+
annotation: instrMatch[3].trim(),
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const labelMatch = trimmed.match(LABEL_RE);
|
|
48
|
+
if (labelMatch) {
|
|
49
|
+
lines.push({ kind: "label", label: labelMatch[1] });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return lines;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Extract a label name from an annotation string like "[4, while_exit_8]" or "while_top_7"
|
|
56
|
+
// Also handles "PC=fn_1_1" for closures
|
|
57
|
+
function extractLabel(annotation: string): string | null {
|
|
58
|
+
// Strip trailing source location info like "3:4-7:5"
|
|
59
|
+
const stripped = annotation.replace(/\s+\d+:\d+-\d+:\d+\s*$/, "").trim();
|
|
60
|
+
|
|
61
|
+
const bracketMatch = stripped.match(/\[\d+,\s*(\w+)\]/);
|
|
62
|
+
if (bracketMatch) return bracketMatch[1];
|
|
63
|
+
|
|
64
|
+
const pcMatch = stripped.match(/\bPC=(\w+)/);
|
|
65
|
+
if (pcMatch) return pcMatch[1];
|
|
66
|
+
|
|
67
|
+
const gotoMatch = stripped.match(/\bgoto\s+(\w+)/);
|
|
68
|
+
if (gotoMatch) return gotoMatch[1];
|
|
69
|
+
|
|
70
|
+
// Bare label at end: last whitespace-separated token
|
|
71
|
+
const lastToken = stripped.split(/\s+/).pop();
|
|
72
|
+
if (lastToken && /^[a-zA-Z_]\w*$/.test(lastToken)) return lastToken;
|
|
73
|
+
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const ARITH_SYMBOLS: Record<string, string> = {
|
|
78
|
+
ADD: "+",
|
|
79
|
+
SUB: "-",
|
|
80
|
+
MUL: "*",
|
|
81
|
+
DIV: "/",
|
|
82
|
+
MOD: "%",
|
|
83
|
+
BAND: "&",
|
|
84
|
+
BOR: "|",
|
|
85
|
+
BXOR: "^",
|
|
86
|
+
SHL: "<<",
|
|
87
|
+
SHR: ">>",
|
|
88
|
+
USHR: ">>>",
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const CMP_SYMBOLS: Record<string, string> = {
|
|
92
|
+
LT: "<",
|
|
93
|
+
GT: ">",
|
|
94
|
+
LTE: "<=",
|
|
95
|
+
GTE: ">=",
|
|
96
|
+
EQ: "===",
|
|
97
|
+
NEQ: "!==",
|
|
98
|
+
LOOSE_EQ: "==",
|
|
99
|
+
LOOSE_NEQ: "!=",
|
|
100
|
+
IN: "in",
|
|
101
|
+
INSTANCEOF: "instanceof",
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const UNARY_SYMBOLS: Record<string, string> = {
|
|
105
|
+
UNARY_NEG: "-",
|
|
106
|
+
UNARY_POS: "+",
|
|
107
|
+
UNARY_NOT: "!",
|
|
108
|
+
UNARY_BITNOT: "~",
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
// Extract value from annotation like 'reg[1] = "Hello"' or 'reg[1] = 42'
|
|
112
|
+
function extractConstValue(annotation: string): string | null {
|
|
113
|
+
const m = annotation.match(/=\s*(.+?)(?:\s+\d+:\d+-\d+:\d+)?$/);
|
|
114
|
+
return m ? m[1].trim() : null;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function disassembleInstr(instr: ParsedInstr): string {
|
|
118
|
+
const { raw, opName, annotation } = instr;
|
|
119
|
+
const r = (i: number) => `r${raw[i]}`;
|
|
120
|
+
|
|
121
|
+
switch (opName) {
|
|
122
|
+
case "LOAD_CONST": {
|
|
123
|
+
const val = extractConstValue(annotation);
|
|
124
|
+
return `${r(1)} = ${val ?? `const[${raw[2]}]`}`;
|
|
125
|
+
}
|
|
126
|
+
case "LOAD_INT":
|
|
127
|
+
return `${r(1)} = ${raw[2]}`;
|
|
128
|
+
case "LOAD_GLOBAL": {
|
|
129
|
+
const val = extractConstValue(annotation);
|
|
130
|
+
return `${r(1)} = ${val ?? `global[${raw[2]}]`}`;
|
|
131
|
+
}
|
|
132
|
+
case "LOAD_UPVALUE":
|
|
133
|
+
return `${r(1)} = upvalue[${raw[2]}]`;
|
|
134
|
+
case "LOAD_THIS":
|
|
135
|
+
return `${r(1)} = this`;
|
|
136
|
+
case "MOVE":
|
|
137
|
+
return `${r(1)} = ${r(2)}`;
|
|
138
|
+
|
|
139
|
+
case "STORE_GLOBAL": {
|
|
140
|
+
// annotation: globals[name] = reg[src]
|
|
141
|
+
const val = extractConstValue(annotation);
|
|
142
|
+
return `global[${val ?? raw[1]}] = ${r(2)}`;
|
|
143
|
+
}
|
|
144
|
+
case "STORE_UPVALUE":
|
|
145
|
+
return `upvalue[${raw[1]}] = ${r(2)}`;
|
|
146
|
+
|
|
147
|
+
case "GET_PROP":
|
|
148
|
+
return `${r(1)} = ${r(2)}[${r(3)}]`;
|
|
149
|
+
case "SET_PROP":
|
|
150
|
+
return `${r(1)}[${r(2)}] = ${r(3)}`;
|
|
151
|
+
case "DELETE_PROP":
|
|
152
|
+
return `${r(1)} = delete ${r(2)}[${r(3)}]`;
|
|
153
|
+
|
|
154
|
+
// Arithmetic / bitwise
|
|
155
|
+
case "ADD":
|
|
156
|
+
case "SUB":
|
|
157
|
+
case "MUL":
|
|
158
|
+
case "DIV":
|
|
159
|
+
case "MOD":
|
|
160
|
+
case "BAND":
|
|
161
|
+
case "BOR":
|
|
162
|
+
case "BXOR":
|
|
163
|
+
case "SHL":
|
|
164
|
+
case "SHR":
|
|
165
|
+
case "USHR":
|
|
166
|
+
return `${r(1)} = ${r(2)} ${ARITH_SYMBOLS[opName]} ${r(3)}`;
|
|
167
|
+
|
|
168
|
+
// Comparison
|
|
169
|
+
case "LT":
|
|
170
|
+
case "GT":
|
|
171
|
+
case "LTE":
|
|
172
|
+
case "GTE":
|
|
173
|
+
case "EQ":
|
|
174
|
+
case "NEQ":
|
|
175
|
+
case "LOOSE_EQ":
|
|
176
|
+
case "LOOSE_NEQ":
|
|
177
|
+
case "IN":
|
|
178
|
+
case "INSTANCEOF":
|
|
179
|
+
return `${r(1)} = ${r(2)} ${CMP_SYMBOLS[opName]} ${r(3)}`;
|
|
180
|
+
|
|
181
|
+
// Unary
|
|
182
|
+
case "UNARY_NEG":
|
|
183
|
+
case "UNARY_POS":
|
|
184
|
+
case "UNARY_NOT":
|
|
185
|
+
case "UNARY_BITNOT":
|
|
186
|
+
return `${r(1)} = ${UNARY_SYMBOLS[opName]}${r(2)}`;
|
|
187
|
+
case "TYPEOF":
|
|
188
|
+
return `${r(1)} = typeof ${r(2)}`;
|
|
189
|
+
case "VOID":
|
|
190
|
+
return `${r(1)} = void ${r(2)}`;
|
|
191
|
+
case "TYPEOF_SAFE": {
|
|
192
|
+
const val = extractConstValue(annotation);
|
|
193
|
+
return `${r(1)} = typeof ${val ?? `safe[${raw[2]}]`}`;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// Control flow
|
|
197
|
+
case "JUMP": {
|
|
198
|
+
const label = extractLabel(annotation);
|
|
199
|
+
return `goto: ${label ?? `pc:${raw[1]}`}`;
|
|
200
|
+
}
|
|
201
|
+
case "JUMP_IF_FALSE": {
|
|
202
|
+
const label = extractLabel(annotation);
|
|
203
|
+
return `if (!${r(1)}) goto: ${label ?? `pc:${raw[2]}`}`;
|
|
204
|
+
}
|
|
205
|
+
case "JUMP_IF_TRUE": {
|
|
206
|
+
const label = extractLabel(annotation);
|
|
207
|
+
return `if (${r(1)}) goto: ${label ?? `pc:${raw[2]}`}`;
|
|
208
|
+
}
|
|
209
|
+
case "JUMP_REG":
|
|
210
|
+
return `goto: *${r(1)}`;
|
|
211
|
+
|
|
212
|
+
// Calls
|
|
213
|
+
case "CALL": {
|
|
214
|
+
const dst = r(1);
|
|
215
|
+
const callee = r(2);
|
|
216
|
+
const argc = raw[3];
|
|
217
|
+
const args = raw.slice(4, 4 + argc).map((_, i) => `r${raw[4 + i]}`);
|
|
218
|
+
return `${dst} = ${callee}(${args.join(", ")})`;
|
|
219
|
+
}
|
|
220
|
+
case "CALL_METHOD": {
|
|
221
|
+
const dst = r(1);
|
|
222
|
+
const recv = r(2);
|
|
223
|
+
const callee = r(3);
|
|
224
|
+
const argc = raw[4];
|
|
225
|
+
const args = raw.slice(5, 5 + argc).map((_, i) => `r${raw[5 + i]}`);
|
|
226
|
+
return `${dst} = ${callee}.call(${recv}, ${args.join(", ")})`;
|
|
227
|
+
}
|
|
228
|
+
case "NEW": {
|
|
229
|
+
const dst = r(1);
|
|
230
|
+
const callee = r(2);
|
|
231
|
+
const argc = raw[3];
|
|
232
|
+
const args = raw.slice(4, 4 + argc).map((_, i) => `r${raw[4 + i]}`);
|
|
233
|
+
return `${dst} = new ${callee}(${args.join(", ")})`;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
case "RETURN":
|
|
237
|
+
return `return ${r(1)}`;
|
|
238
|
+
case "THROW":
|
|
239
|
+
return `throw ${r(1)}`;
|
|
240
|
+
|
|
241
|
+
// Closures
|
|
242
|
+
case "MAKE_CLOSURE": {
|
|
243
|
+
const dst = r(1);
|
|
244
|
+
const startPc = raw[2];
|
|
245
|
+
const paramCount = raw[3];
|
|
246
|
+
const regCount = raw[4];
|
|
247
|
+
const uvCount = raw[5];
|
|
248
|
+
const label = extractLabel(annotation);
|
|
249
|
+
const uvParts: string[] = [];
|
|
250
|
+
for (let i = 0; i < uvCount; i++) {
|
|
251
|
+
const isLocal = raw[6 + i * 2];
|
|
252
|
+
const idx = raw[6 + i * 2 + 1];
|
|
253
|
+
uvParts.push(isLocal ? `local[${idx}]` : `uv[${idx}]`);
|
|
254
|
+
}
|
|
255
|
+
const uvStr = uvCount > 0 ? `, upvalues=[${uvParts.join(", ")}]` : "";
|
|
256
|
+
return `${dst} = MakeClosure(${label ?? `pc:${startPc}`}, params=${paramCount}, regs=${regCount}${uvStr})`;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
// Collections
|
|
260
|
+
case "BUILD_ARRAY": {
|
|
261
|
+
const dst = r(1);
|
|
262
|
+
const count = raw[2];
|
|
263
|
+
const elems = raw.slice(3, 3 + count).map((_, i) => `r${raw[3 + i]}`);
|
|
264
|
+
return `${dst} = [${elems.join(", ")}]`;
|
|
265
|
+
}
|
|
266
|
+
case "BUILD_OBJECT": {
|
|
267
|
+
const dst = r(1);
|
|
268
|
+
const pairCount = raw[2];
|
|
269
|
+
const pairs: string[] = [];
|
|
270
|
+
for (let i = 0; i < pairCount; i++) {
|
|
271
|
+
pairs.push(`[r${raw[3 + i * 2]}]: r${raw[4 + i * 2]}`);
|
|
272
|
+
}
|
|
273
|
+
return `${dst} = {${pairs.join(", ")}}`;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// Property definitions
|
|
277
|
+
case "DEFINE_GETTER":
|
|
278
|
+
return `Object.defineGetter(${r(1)}, ${r(2)}, ${r(3)})`;
|
|
279
|
+
case "DEFINE_SETTER":
|
|
280
|
+
return `Object.defineSetter(${r(1)}, ${r(2)}, ${r(3)})`;
|
|
281
|
+
|
|
282
|
+
// For-in
|
|
283
|
+
case "FOR_IN_SETUP":
|
|
284
|
+
return `${r(1)} = ForInSetup(${r(2)})`;
|
|
285
|
+
case "FOR_IN_NEXT": {
|
|
286
|
+
const label = extractLabel(annotation);
|
|
287
|
+
return `${r(1)} = ForInNext(${r(2)}) else goto ${label ?? `pc:${raw[3]}`}`;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// Exception handling
|
|
291
|
+
case "TRY_SETUP": {
|
|
292
|
+
return `try { catch -> pc:${raw[1]}, exReg=${r(2)}`;
|
|
293
|
+
}
|
|
294
|
+
case "TRY_END":
|
|
295
|
+
return `} // end try`;
|
|
296
|
+
|
|
297
|
+
// Self-modifying
|
|
298
|
+
case "PATCH":
|
|
299
|
+
return `patch(dest=pc:${raw[1]}, src=pc:${raw[2]}..${raw[3]})`;
|
|
300
|
+
|
|
301
|
+
case "DEBUGGER":
|
|
302
|
+
return `debugger`;
|
|
303
|
+
|
|
304
|
+
default:
|
|
305
|
+
return `??? ${opName} [${raw.join(", ")}]`;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export function disassembleCommentBlock(commentBlock: string): string {
|
|
310
|
+
const lines = parseBlock(commentBlock);
|
|
311
|
+
|
|
312
|
+
let bodies: string[][] = [];
|
|
313
|
+
let currentBody: string[] = [];
|
|
314
|
+
|
|
315
|
+
for (const line of lines) {
|
|
316
|
+
if (line.kind === "label") {
|
|
317
|
+
let newBody = [];
|
|
318
|
+
newBody.push(`// ${line.label}:`);
|
|
319
|
+
bodies.push(newBody);
|
|
320
|
+
currentBody = newBody;
|
|
321
|
+
} else if (line.instr) {
|
|
322
|
+
currentBody.push(` ${disassembleInstr(line.instr)}`);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
const out: string[] = bodies.flatMap((body) => body);
|
|
327
|
+
|
|
328
|
+
return out.join("\n");
|
|
329
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
import { compileAndSerialize } from "./compiler.ts";
|
|
2
2
|
import type { Options } from "./options.ts";
|
|
3
3
|
import { DEFAULT_OPTIONS } from "./options.ts";
|
|
4
|
+
import { disassembleCommentBlock } from "./disassembler.ts";
|
|
5
|
+
import type { ObfuscationResult } from "./types.ts";
|
|
4
6
|
|
|
5
|
-
async function obfuscate(
|
|
6
|
-
|
|
7
|
+
async function obfuscate(
|
|
8
|
+
source: string,
|
|
9
|
+
options: Options = DEFAULT_OPTIONS,
|
|
10
|
+
): Promise<ObfuscationResult> {
|
|
11
|
+
const result = await compileAndSerialize(source, options);
|
|
7
12
|
|
|
8
13
|
return result;
|
|
9
14
|
}
|
|
10
15
|
|
|
16
|
+
async function disassemble(bytecodeComments: string) {
|
|
17
|
+
return disassembleCommentBlock(bytecodeComments);
|
|
18
|
+
}
|
|
19
|
+
|
|
11
20
|
export const JsConfuserVM = {
|
|
12
21
|
obfuscate,
|
|
22
|
+
disassemble,
|
|
13
23
|
};
|
|
14
24
|
export default JsConfuserVM;
|
package/src/options.ts
CHANGED
|
@@ -5,13 +5,20 @@ export interface Options {
|
|
|
5
5
|
shuffleOpcodes?: boolean; // shuffle order of opcode handlers in the runtime?
|
|
6
6
|
encodeBytecode?: boolean; // encode bytecode? when off, comments for instructions are added
|
|
7
7
|
selfModifying?: boolean; // do self-modifying bytecode for function bodies?
|
|
8
|
+
dispatcher?: boolean; // create middleman blocks to process jumps?
|
|
9
|
+
controlFlowFlattening?: boolean; // flatten the control flow of your program into a convoluted state machine?
|
|
8
10
|
macroOpcodes?: boolean; // create combined opcodes for repeated instruction sequences?
|
|
9
|
-
microOpcodes?: boolean; // break opcodes into sub-opcodes?
|
|
10
11
|
specializedOpcodes?: boolean; // create specialized opcodes for commonly used opcode+operand pairs?
|
|
11
12
|
aliasedOpcodes?: boolean; // create duplicate opcodes for commonly used opcodes?
|
|
13
|
+
handlerTable?: boolean; // convert switch dispatch to a handler table on the VM prototype?
|
|
12
14
|
timingChecks?: boolean; // add timing checks to detect debuggers?
|
|
13
15
|
concealConstants?: boolean; // conceal strings and integers in the constant pool?
|
|
16
|
+
classObfuscation?: boolean; // obfuscate the VM runtime classes?
|
|
14
17
|
minify?: boolean; // pass final output through Google Closure Compiler? (Renames VM class properties)
|
|
18
|
+
|
|
19
|
+
stringConcealing?: boolean;
|
|
20
|
+
|
|
21
|
+
verbose?: boolean;
|
|
15
22
|
}
|
|
16
23
|
|
|
17
24
|
export const DEFAULT_OPTIONS = {};
|