Open svaarala opened 9 years ago
@svaarala: I tried the first approach that you menchened in #190 (extend duk_push_buffer_object()) before looking at the docs or the Duktape source because there are a few other API calls that intepret their meaning from the type on the top of the stack. I think that that's the most intuitive approach, and as you said, it causes the least problems for future API versions.
Now involves
Duktape.Buffer()
: