소스 검색

Replace missed Array.fill

frobinsonj 5 년 전
부모
커밋
251b365b43
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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 + ")()";
       }