Sfoglia il codice sorgente

Added code output on error in the runtime tests

sanex3339 4 anni fa
parent
commit
99bdbd62a8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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}`;
                     });
             });