Fix deprecation warnings in buffer.js.
Fix deprecation warnings in buffer.js.

--HG--
extra : rebase_source : a0dd9dfbb43d16a88eea7c3a07bbb3756cdbb1f2

invl/dactyl,airodactyl/dactyl,moonshadow/dactyl,5digits/dactyl,moonshadow/dactyl,airodactyl/dactyl,nathyong/dactyl,invl/dactyl,airodactyl/dactyl,5digits/dactyl,nathyong/dactyl,moonshadow/dactyl,madand/pentadactyl-pm,nathyong/dactyl,Kjwon15/dactyl,moonshadow/dactyl,moonshadow/dactyl,Kjwon15/dactyl,Kjwon15/dactyl,5digits/dactyl,madand/pentadactyl-pm,5digits/dactyl,nathyong/dactyl,5digits/dactyl,Kjwon15/dactyl,madand/pentadactyl-pm,invl/dactyl,nathyong/dactyl,5digits/dactyl,madand/pentadactyl-pm,invl/dactyl,invl/dactyl,madand/pentadactyl-pm,Kjwon15/dactyl,nathyong/dactyl,airodactyl/dactyl,airodactyl/dactyl,airodactyl/dactyl,Kjwon15/dactyl,madand/pentadactyl-pm,invl/dactyl,moonshadow/dactyl