Lines Matching defs:value
79 Local<Value> value,
82 if (!value->ToString(isolate->GetCurrentContext()).ToLocal(&string)) return;
95 Utf8Value::Utf8Value(Isolate* isolate, Local<Value> value) {
96 if (value.IsEmpty())
99 MakeUtf8String(isolate, value, this);
103 TwoByteValue::TwoByteValue(Isolate* isolate, Local<Value> value) {
104 if (value.IsEmpty()) {
109 if (!value->ToString(isolate->GetCurrentContext()).ToLocal(&string)) return;
120 BufferValue::BufferValue(Isolate* isolate, Local<Value> value) {
121 // Slightly different take on Utf8Value. If value is a String,
122 // it will return a Utf8 encoded string. If value is a Buffer,
124 if (value.IsEmpty()) {
130 if (value->IsString()) {
131 MakeUtf8String(isolate, value, this);
132 } else if (value->IsArrayBufferView()) {
133 const size_t len = value.As<ArrayBufferView>()->ByteLength();
136 value.As<ArrayBufferView>()->CopyContents(out(), len);