diff options
author | max99x <max99x@gmail.com> | 2011-07-30 04:02:27 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-07-30 04:02:27 +0300 |
commit | a6e44cf635adb9a46f86f655075f3817c741f76e (patch) | |
tree | f108ae5e8f664740244bf4839fcbf9855f9a737a /src/parseTools.js | |
parent | efacab6cd2ee666207ece72478c261dbaf476322 (diff) | |
parent | da3cce725967ce04bdf62d73faf2d947f8063d0a (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 4a3867ef..2985ccb6 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -13,7 +13,7 @@ function processMacros(text) { // Simple #if/else/endif preprocessing for a file. Checks if the // ident checked is true in our global. Also replaces some constants. function preprocess(text, constants) { - for (constant in constants) { + for (var constant in constants) { text = text.replace(eval('/' + constant + '/g'), constants[constant]); } var lines = text.split('\n'); |