Преглед изворни кода

Added code output on error in the runtime tests

sanex3339 пре 4 година
родитељ
комит
99bdbd62a8
1 измењених фајлова са 1 додато и 1 уклоњено
  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}`;
                     });
             });