Skip to content

Commit

Permalink
Add note on special globals
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Feb 23, 2015
1 parent e70efd1 commit fab30be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**<br>
Please be aware that you can't rewire `eval()` or the global object itself.

<br />

Expand Down

0 comments on commit fab30be

Please sign in to comment.