mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
Fix build - due to V8 API change
This commit is contained in:
@@ -500,7 +500,7 @@ Handle<Value> Buffer::Utf8Write(const Arguments &args) {
|
||||
|
||||
if (written > 0 && p[written-1] == '\0' && char_written == length) {
|
||||
uint16_t last_char;
|
||||
s->Write(&last_char, length - 1, 1, String::NO_HINTS);
|
||||
s->Write(&last_char, length - 1, 1, String::NO_OPTIONS);
|
||||
if (last_char != 0 || written > s->Utf8Length()) {
|
||||
written--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user