Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fab30be

Browse files
committed
Add note on special globals
1 parent e70efd1 commit fab30be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,10 @@ rewire imports global variables into the local scope by prepending a list of `va
158158
var someGlobalVar = global.someGlobalVar;
159159
```
160160

161-
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**.
161+
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**.
162+
163+
**Special globals**<br>
164+
Please be aware that you can't rewire `eval()` or the global object itself.
162165

163166
<br />
164167

0 commit comments

Comments
 (0)