v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8-value-utils.cc
Go to the documentation of this file.
1// Copyright 2016 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
10
11namespace v8_inspector {
12
17 v8::TryCatch tryCatch(context->GetIsolate());
19 context->GetIsolate(),
21 return object->CreateDataProperty(context, key, value);
22}
23
25 v8::Local<v8::Array> array, int index,
27 v8::TryCatch tryCatch(context->GetIsolate());
29 context->GetIsolate(),
31 return array->CreateDataProperty(context, index, value);
32}
33} // namespace v8_inspector
v8::Maybe< bool > createDataProperty(v8::Local< v8::Context > context, v8::Local< v8::Object > object, v8::Local< v8::Name > key, v8::Local< v8::Value > value)
std::unique_ptr< ValueMirror > key