summaryrefslogtreecommitdiff
path: root/src/string_bytes.h
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2018-08-26 10:28:17 +0200
committerMichaël Zasso <targos@protonmail.com>2018-08-29 12:28:14 +0200
commita64fd7f320af90dd76b7d922f104e5715797f0a6 (patch)
tree426036092af5c19bc0c90c4bb8424d0c69686d6a /src/string_bytes.h
parent7c84489b8828797e77236da26594bd642d0120f9 (diff)
downloadandroid-node-v8-a64fd7f320af90dd76b7d922f104e5715797f0a6.tar.gz
android-node-v8-a64fd7f320af90dd76b7d922f104e5715797f0a6.tar.bz2
android-node-v8-a64fd7f320af90dd76b7d922f104e5715797f0a6.zip
src: use String::Write{OneByte,Utf8} with isolate
PR-URL: https://github.com/nodejs/node/pull/22531 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/string_bytes.h')
-rw-r--r--src/string_bytes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/string_bytes.h b/src/string_bytes.h
index 7a70f06f63..5f5fcd9fa0 100644
--- a/src/string_bytes.h
+++ b/src/string_bytes.h
@@ -112,7 +112,8 @@ class StringBytes {
v8::Local<v8::Value>* error);
private:
- static size_t WriteUCS2(char* buf,
+ static size_t WriteUCS2(v8::Isolate* isolate,
+ char* buf,
size_t buflen,
v8::Local<v8::String> str,
int flags,