string,
const_cast<const char**>(&buf),
&len)) {
- enum encoding enc = ParseEncoding(args[3], UTF8);
+ enum encoding enc = ParseEncoding(env->isolate(), args[3], UTF8);
len = StringBytes::StorageSize(env->isolate(), string, enc);
buf = new char[len];
// StorageSize may return too large a char, so correct the actual length
// String chunk
Handle<String> string = chunk->ToString();
- enum encoding encoding = ParseEncoding(chunks->Get(i * 2 + 1));
+ enum encoding encoding = ParseEncoding(env->isolate(),
+ chunks->Get(i * 2 + 1));
size_t chunk_size;
if (encoding == UTF8 && string->Length() > 65535)
chunk_size = StringBytes::Size(env->isolate(), string, encoding);
size_t str_size = storage_size - offset;
Handle<String> string = chunk->ToString();
- enum encoding encoding = ParseEncoding(chunks->Get(i * 2 + 1));
+ enum encoding encoding = ParseEncoding(env->isolate(),
+ chunks->Get(i * 2 + 1));
str_size = StringBytes::Write(env->isolate(),
str_storage,
str_size,