diff options
author | Alon Zakai <azakai@mozilla.com> | 2011-03-04 20:02:29 -0800 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2011-03-04 20:02:29 -0800 |
commit | 46691ad5cd94f1a629ac747831e9572b3661682e (patch) | |
tree | d170dc21c9178cef67a0200355b8354d2a8610b9 /src | |
parent | 201720b8554abef38d2c3269280ea23473f057bb (diff) |
fix for closure compiler
Diffstat (limited to 'src')
-rw-r--r-- | src/parseTools.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 7d90e246..8b30554d 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -494,14 +494,14 @@ function getLabelIds(labels) { function getNativeFieldSize(field, alone) { if (QUANTUM_SIZE == 1) return 1; var size = { - 'i1': 1, - 'i8': 1, - 'i16': 2, - 'i32': 4, - 'i64': 8, - 'float': 4, - 'double':8 - }[field]; + '_i1': 1, + '_i8': 1, + '_i16': 2, + '_i32': 4, + '_i64': 8, + "_float": 4, + "_double": 8 + }['_'+field]; // add '_' since float&double confuse closure compiler as keys if (!size) { size = QUANTUM_SIZE; // A pointer } |