git ssb

0+

wanderer🌟 / bls-lib



Commit 362393ee3f2872872502bf114a164c7a7f702d46

remove duplicated code

MITSUNARI Shigeo committed on 12/11/2017, 10:43:37 AM
Parent: c0a8e75426a534dbbcb6686d286b000b566c9f59

Files changed

index.jschanged
index.jsView
@@ -334,13 +334,11 @@
334334 }
335335 }
336336
337337 function wrapDeserialize (func) {
338 + func = wrapInput(func)
338339 return function (p, buf) {
339- const pos = mod._malloc(buf.length)
340- mod.HEAP8.set(buf, pos)
341- const r = func(p, pos, buf.length)
342- mod._free(pos)
340 + const r = func(p, buf)
343341 if (r === 0) {
344342 throw new Error('Deserialize err')
345343 }
346344 }

Built with git-ssb-web