Ver código fonte

Replace missed Array.fill

frobinsonj 5 anos atrás
pai
commit
251b365b43
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      jsfuck.js

+ 3 - 3
jsfuck.js

@@ -267,7 +267,7 @@
         } else {
           var cc16 = c.charCodeAt(0).toString(16);
           replacement =
-            "[][" + encode("fill") + "]"+
+            "[][" + encode("flat") + "]"+
             "[" + encode("constructor") + "]" +
             "(" + encode("return\"\\u"+("0000"+cc16).substring(cc16.length)+"\"") + ")()";
 
@@ -285,12 +285,12 @@
 
     if (wrapWithEval){
       if (runInParentScope){
-        output = "[][" + encode("fill") + "]" +
+        output = "[][" + encode("flat") + "]" +
           "[" + encode("constructor") + "]" +
           "(" + encode("return eval") +  ")()" +
           "(" + output + ")";
       } else {
-        output = "[][" + encode("fill") + "]" +
+        output = "[][" + encode("flat") + "]" +
           "[" + encode("constructor") + "]" +
           "(" + output + ")()";
       }