From fab30be52aa7b236a143dfe10cac9f6c58fc4b3f Mon Sep 17 00:00:00 2001 From: Johannes Ewald Date: Mon, 23 Feb 2015 01:41:19 +0100 Subject: [PATCH] Add note on special globals --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e02bfc5..39d8936 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,10 @@ rewire imports global variables into the local scope by prepending a list of `va var someGlobalVar = global.someGlobalVar; ``` -If `someGlobalVar` is not a valid variable name, rewire just ignores it. **In this case you're not able to override the global variable locally**. +If `someGlobalVar` is not a valid variable name, rewire just ignores it. **In this case you're not able to override the global variable locally**. + +**Special globals**
+Please be aware that you can't rewire `eval()` or the global object itself.