v8
12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
v8-proxy.h
Go to the documentation of this file.
1
2
// Copyright 2021 the V8 project authors. All rights reserved.
3
// Use of this source code is governed by a BSD-style license that can be
4
// found in the LICENSE file.
5
6
#ifndef INCLUDE_V8_PROXY_H_
7
#define INCLUDE_V8_PROXY_H_
8
9
#include "
v8-context.h
"
// NOLINT(build/include_directory)
10
#include "
v8-local-handle.h
"
// NOLINT(build/include_directory)
11
#include "
v8-object.h
"
// NOLINT(build/include_directory)
12
#include "
v8config.h
"
// NOLINT(build/include_directory)
13
14
namespace
v8
{
15
16
class
Context;
17
22
class
V8_EXPORT
Proxy
:
public
Object
{
23
public
:
24
Local<Value>
GetTarget
();
25
Local<Value>
GetHandler
();
26
bool
IsRevoked
()
const
;
27
void
Revoke
();
28
32
static
MaybeLocal<Proxy>
New
(
Local<Context>
context,
33
Local<Object>
local_target,
34
Local<Object>
local_handler);
35
36
V8_INLINE
static
Proxy
*
Cast
(
Value
* value) {
37
#ifdef V8_ENABLE_CHECKS
38
CheckCast(value);
39
#endif
40
return
static_cast<
Proxy
*
>
(value);
41
}
42
43
private
:
44
Proxy
();
45
static
void
CheckCast(
Value
* obj);
46
};
47
48
}
// namespace v8
49
50
#endif
// INCLUDE_V8_PROXY_H_
v8::Local
Definition
v8-local-handle.h:258
v8::MaybeLocal
Definition
v8-local-handle.h:616
v8::Object
Definition
v8-object.h:234
v8::Proxy
Definition
v8-proxy.h:22
v8::Proxy::Cast
static V8_INLINE Proxy * Cast(Value *value)
Definition
v8-proxy.h:36
v8::Proxy::GetHandler
Local< Value > GetHandler()
v8::Proxy::Revoke
void Revoke()
v8::Proxy::GetTarget
Local< Value > GetTarget()
v8::Proxy::IsRevoked
bool IsRevoked() const
v8::Proxy::New
static MaybeLocal< Proxy > New(Local< Context > context, Local< Object > local_target, Local< Object > local_handler)
v8::Value
Definition
v8-value.h:32
v8
Definition
libplatform.h:15
v8-context.h
v8-local-handle.h
v8-object.h
v8config.h
V8_EXPORT
#define V8_EXPORT
Definition
v8config.h:753
V8_INLINE
#define V8_INLINE
Definition
v8config.h:477
include
v8-proxy.h
Generated on Thu Jul 11 2024 21:30:42 for v8 by
1.9.7