Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfab30be

Browse files
committed
Add note on special globals
1 parente70efd1 commitfab30be

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)

[8]ページ先頭

©2009-2025 Movatter.jp