Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Return string/buffer data for both plain values and boxed values #167
It might be more useful if the calls accepted String and Duktape.Buffer objects like plain values.
With Node.js Buffer and TypedArray bindings, they should similarly return pointers and lengths for Node.js Buffer, ArrayBuffer, and TypedArray/DataView values. Same boxed/unboxed issue also affects Number and Boolean types (e.g.
A non-breaking change would be to add separate calls to get string/buffer data, with the calls accepting both plain and boxed strings/buffers, e.g.:
The obvious question then is whether to deprecate