Jelajahi Sumber

Added code output on error in the runtime tests

sanex3339 4 tahun lalu
induk
melakukan
99bdbd62a8
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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}`;
                     });
             });