Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove some flowery language.

  • Loading branch information...
commit c4c9eda24183b7b676716485c92b4f2194f57bcf 1 parent eb4b256
@BonsaiDen BonsaiDen authored
View
2  doc/arguments.md
@@ -56,7 +56,7 @@ wrappers.
};
-### Modification "magic"
+### Formal parameters and arguments indexes
The `arguments` object creates *getter* and *setter* functions for both its
properties as well as the function's formal parameters.
View
12 doc/eval.md
@@ -1,4 +1,4 @@
-## The evil `eval`
+## Reasons against `eval`
The `eval` function will execute a string of JavaScript code in the local scope.
@@ -40,9 +40,9 @@ it should **never** be used with strings of unknown or untrusted origins.
### In conclusion
-`eval` is **evil**. Never should it be used, any code that makes use of it is to
-be questioned in both its workings and security. In case something requires `eval`
-in order to work, its design is to be questioned and should **not** be used in
-the first place, a *better design* should be used, that does not require the use
-of `eval`.
+`eval` should never be used, any code that makes use of it is to be questioned in
+its workings, performance and security. In case something requires `eval` in
+order to work, its design is to be questioned and should **not** be used in the
+first place, a *better design* should be used, that does not require the use of
+`eval`.
View
2  doc/index.md
@@ -18,7 +18,7 @@
- [The `instanceof` operator](#instanceof)
- [Type casting](#casting)
- [`undefined` and `null`](#undefined)
-- [The evil `eval`](#eval)
+- [Reasons against `eval`](#eval)
- [`setTimeout` and `setInterval`](#timeouts)
- [Automatic semicolon insertion](#semicolon)
View
2  doc/timeouts.md
@@ -98,7 +98,7 @@ There might still be timeouts that are unaffected by this arbitrary number;
therefore, is is instead recommended to keep track of all the timeout IDs, so
they can be cleared specifically.
-### Hidden `eval` magic
+### Hidden use of `eval`
`setTimeout` and `setInterval` can also take a string as their first parameter.
This feature should **never** be used, since it internally makes use of `eval`.
Please sign in to comment.
Something went wrong with that request. Please try again.