From 25628db710f8873c8ccf427936da46dd5dd1f2ff Mon Sep 17 00:00:00 2001 From: Attacktive Date: Mon, 9 May 2022 22:12:44 +0900 Subject: [PATCH] Update documentation. https://github.com/aemkei/jsfuck/issues/120 --- README.md | 8 ++++---- index.html | 7 +++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d5c5ac49..8267ea16 100644 --- a/README.md +++ b/README.md @@ -45,10 +45,10 @@ The following source will do an `alert(1)`: Number => +[] String => []+[] Boolean => ![] - Function => []["filter"] - run => []["filter"]["constructor"]( CODE )() - eval => []["filter"]["constructor"]("return eval")()( CODE ) - window => []["filter"]["constructor"]("return this")() + Function => []["flat"] + run => []["flat"]["constructor"]( CODE )() + eval => []["flat"]["constructor"]("return eval")()( CODE ) + window => []["flat"]["constructor"]("return this")() See the full list [here](https://github.com/aemkei/jsfuck/blob/master/jsfuck.js). diff --git a/index.html b/index.html index b3331bbb..a8196cb2 100644 --- a/index.html +++ b/index.html @@ -135,10 +135,9 @@

Basics

  • Number => +[]
  • String => []+[]
  • Boolean => ![]
  • -
  • Function => []["filter"]
  • - -
  • eval => []["filter"]["constructor"]( CODE )()
  • -
  • window => []["filter"]["constructor"]("return this")()
  • +
  • Function => []["flat"]
  • +
  • eval => []["flat"]["constructor"]( CODE )()
  • +
  • window => []["flat"]["constructor"]("return this")()
  • See the full list here.