lib: deprecate the smalloc module
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 29 Apr 2015 17:08:19 +0000 (19:08 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 29 Apr 2015 17:33:43 +0000 (19:33 +0200)
commitd5ce47e433c24e9773373ccede613df9f051e7b1
tree23ffae8a2ebde760da3029906a867a7765ce3625
parent3c92ca2b5c1aea283efebd50b27e2a256adf5f7f
lib: deprecate the smalloc module

Upcoming V8 changes will make it impossible to keep supporting the
smalloc module so deprecate it now and tell people to switch to
typed arrays.

The module is used in core in a few places so this commit makes the
public module private and replaces the public part with wrappers that
print deprecation notices.

PR-URL: https://github.com/iojs/io.js/pull/1564
Reviewed-By: Domenic Denicola <domenic@domenicdenicola.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
lib/internal/smalloc.js [new file with mode: 0644]
lib/smalloc.js
lib/v8.js
node.gyp