v8-value-utils.h 962 Bytes
Newer Older
1 2 3 4
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5 6
#ifndef V8_INSPECTOR_V8_VALUE_UTILS_H_
#define V8_INSPECTOR_V8_VALUE_UTILS_H_
7

8 9
#include "src/inspector/protocol/Protocol.h"

10
#include "include/v8.h"
11 12 13 14 15 16 17 18 19 20

namespace v8_inspector {

v8::Maybe<bool> createDataProperty(v8::Local<v8::Context>,
                                   v8::Local<v8::Object>,
                                   v8::Local<v8::Name> key,
                                   v8::Local<v8::Value>);
v8::Maybe<bool> createDataProperty(v8::Local<v8::Context>, v8::Local<v8::Array>,
                                   int index, v8::Local<v8::Value>);

21 22 23
protocol::Response toProtocolValue(v8::Local<v8::Context>, v8::Local<v8::Value>,
                                   std::unique_ptr<protocol::Value>* result);

24 25
}  // namespace v8_inspector

26
#endif  // V8_INSPECTOR_V8_VALUE_UTILS_H_