Explorar o código

Added code output on error in the runtime tests

sanex3339 %!s(int64=4) %!d(string=hai) anos
pai
achega
99bdbd62a8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/runtime-tests/JavaScriptObfuscatorRuntime.spec.ts

+ 1 - 1
test/runtime-tests/JavaScriptObfuscatorRuntime.spec.ts

@@ -210,7 +210,7 @@ describe('JavaScriptObfuscator runtime eval', function () {
                         evaluationResult = result;
                     })
                     .catch((error: Error) => {
-                        evaluationResult = `${error.message}. ${error.stack}`;
+                        evaluationResult = `${error.message}. ${error.stack}. Code: ${obfuscatedCode}`;
                     });
             });