diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-09-01 10:50:43 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-09-01 10:50:43 -0700 |
commit | 7359e3ff751c241d19f638c59f127ab73c2c7e07 (patch) | |
tree | c01238e51e7b76a8b6af386305f352e5242451d9 /src/parseTools.js | |
parent | fcc9d08d9e4a7513f021952263d05f97ef997f2f (diff) |
fix bugs with parsing anonymous structure types
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 78b88ea8..46f664b4 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -53,6 +53,7 @@ function preprocess(text, constants) { function addPointing(type) { return type + '*' } function removePointing(type, num) { if (num === 0) return type; + assert(type.substr(type.length-(num ? num : 1)).replace(/\*/g, '') === ''); return type.substr(0, type.length-(num ? num : 1)); } |