diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-19 15:40:57 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-19 15:40:57 -0800 |
commit | 2d0b313958d6856adaa4a48ae00ee18a3fb08f11 (patch) | |
tree | 3c3e85785e8cb436e9fe7cc0bc767564b31ee220 | |
parent | 029499a342c6f0ada3e6ab50eeee3442f68dcdfd (diff) |
remove assertion on allocating 0 bytes (now that we allow negative allocations, it is meaningless)
-rw-r--r-- | src/runtime.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/runtime.js b/src/runtime.js index e1a6db39..39f522a7 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -9,9 +9,6 @@ var RuntimeGenerator = { alloc: function(size, type, init) { var ret = type + 'TOP'; - if (ASSERTIONS) { - ret += '; assert(' + size + ' != 0, "Trying to allocate 0")'; - } if (init) { ret += '; _memset(' + type + 'TOP, 0, ' + size + ')'; } |