sanex3339 5 سال پیش
والد
کامیت
63fd4a82d9
2فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 2 2
      test/fixtures/compile-performance.js
  2. 3 0
      test/runtime-tests/JavaScriptObfuscatorRuntime.spec.ts

+ 2 - 2
test/fixtures/compile-performance.js

@@ -29241,7 +29241,7 @@
         var NumberFormatter = (function () {
             function NumberFormatter() {
             }
-            NumberFormatter.sanitizeTemplate = function (num, locale, style, _a) {
+            NumberFormatter.format = function (num, locale, style, _a) {
                 var _b = _a === void 0 ? {} : _a, minimumIntegerDigits = _b.minimumIntegerDigits, minimumFractionDigits = _b.minimumFractionDigits, maximumFractionDigits = _b.maximumFractionDigits, currency = _b.currency, _c = _b.currencyAsSymbol, currencyAsSymbol = _c === void 0 ? false : _c;
                 var options = {
                     minimumIntegerDigits: minimumIntegerDigits,
@@ -29415,7 +29415,7 @@
         var DateFormatter = (function () {
             function DateFormatter() {
             }
-            DateFormatter.sanitizeTemplate = function (date, locale, pattern) {
+            DateFormatter.format = function (date, locale, pattern) {
                 return dateFormatter(pattern, date, locale);
             };
             return DateFormatter;

+ 3 - 0
test/runtime-tests/JavaScriptObfuscatorRuntime.spec.ts

@@ -20,8 +20,11 @@ describe('JavaScriptObfuscator runtime eval', function () {
         controlFlowFlatteningThreshold: 1,
         deadCodeInjection: true,
         deadCodeInjectionThreshold: 1,
+        debugProtection: true,
         disableConsoleOutput: true,
+        domainLock: ['obfuscator.io'],
         rotateStringArray: true,
+        selfDefending: true,
         splitStrings: true,
         splitStringsChunkLength: 5,
         stringArray: true,