V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8 Namespace Reference

Classes

class  AccessorSignature
 
class  ActivityControl
 
class  AlignOfHelper
 
class  AllocationProfile
 
class  ApiFunction
 
class  Array
 
class  ArrayBuffer
 
class  ArrayBufferView
 
class  AsyncCompilationResolver
 
struct  AsyncContext
 
class  AsyncHooks
 
class  AsyncHooksWrap
 
class  BackgroundCompileThread
 
class  BigInt
 
class  BigInt64Array
 
class  BigIntObject
 
class  BigUint64Array
 
class  Boolean
 
class  BooleanObject
 
class  CodeEvent
 
class  CodeEventHandler
 
class  Consts
 
class  ContainsOnlyOneByteHelper
 
class  ConvertableToTraceFormat
 
struct  CopyablePersistentTraits
 
class  Counter
 
struct  CounterAndKey
 
class  CounterCollection
 
class  CpuProfile
 
struct  CpuProfileDeoptFrame
 
struct  CpuProfileDeoptInfo
 
class  CpuProfileNode
 
class  CpuProfiler
 
struct  CStringHasher
 
class  D8Console
 
class  Data
 
struct  DataAndPersistent
 
class  DataView
 
class  Date
 
class  DefaultGlobalMapTraits
 
class  DefaultPersistentValueMapTraits
 
class  DefaultPersistentValueVectorTraits
 
class  DelayedTasksPlatform
 
class  Deserializer
 
class  DummySourceStream
 
class  EmbedderGraph
 
class  EscapableHandleScope
 
class  Eternal
 
class  ExecArgs
 
class  External
 
class  ExternalizedContents
 
class  ExternalOwningOneByteStringResource
 
class  Float32Array
 
class  Float64Array
 
class  Function
 
class  FunctionCallbackInfo
 
class  FunctionTemplate
 
class  Global
 
class  GlobalValueMap
 
class  HandleScope
 
class  HeapGraphEdge
 
class  HeapGraphNode
 
class  HeapProfiler
 
class  HeapSnapshot
 
struct  HeapStatsUpdate
 
class  IdleTask
 
struct  IndexedPropertyHandlerConfiguration
 
class  InspectorClient
 
class  InspectorFrontend
 
class  Int16Array
 
class  Int32
 
class  Int32Array
 
class  Int8Array
 
class  Integer
 
struct  InvokeBootstrapper
 
struct  InvokeBootstrapper< i::Context >
 
struct  InvokeBootstrapper< i::JSGlobalProxy >
 
class  IsIdentifierHelper
 
struct  JSEntryStub
 
class  JSON
 
class  Local
 
class  Location
 
class  Map
 
class  Maybe
 
class  MaybeLocal
 
struct  MemoryRange
 
class  Message
 
class  Module
 
class  Name
 
struct  NamedPropertyHandlerConfiguration
 
class  NonCopyablePersistentTraits
 
class  Number
 
class  NumberObject
 
class  Object
 
class  ObjectTemplate
 
struct  OneByteMask
 
struct  OneByteMask< 4 >
 
struct  OneByteMask< 8 >
 
class  OpenFDCloser
 
class  OutputStream
 
class  PageAllocator
 
class  PerIsolateData
 
class  Persistent
 
class  PersistentBase
 
class  PersistentValueMap
 
class  PersistentValueMapBase
 
class  PersistentValueVector
 
class  Platform
 
class  PredictablePlatform
 
class  Primitive
 
class  PrimitiveArray
 
class  Private
 
class  Promise
 
class  PropertyCallbackInfo
 
class  PropertyDescriptor
 
class  Proxy
 
class  RegExp
 
class  RegisteredExtension
 
struct  RegisterState
 
class  RetainedObjectInfo
 
class  ReturnValue
 
struct  SampleInfo
 
class  Script
 
class  ScriptCompiler
 
class  ScriptOrigin
 
class  ScriptOriginOptions
 
class  ScriptOrModule
 
class  SealHandleScope
 
class  SerializationData
 
class  SerializationDataQueue
 
class  Serializer
 
class  Set
 
class  SharedArrayBuffer
 
class  Shell
 
class  ShellOptions
 
class  Signature
 
class  SourceGroup
 
class  StackFrame
 
class  StackTrace
 
class  StdGlobalValueMap
 
class  StdMapTraits
 
class  StdPersistentValueMap
 
class  String
 
class  StringObject
 
class  Symbol
 
class  SymbolObject
 
class  Task
 
class  TaskRunner
 
class  Template
 
class  Testing
 
struct  TickSample
 
class  TracingController
 
class  TypedArray
 
class  Uint16Array
 
class  Uint32
 
class  Uint32Array
 
class  Uint8Array
 
class  Uint8ClampedArray
 
class  UnboundModuleScript
 
class  UnboundScript
 
struct  UnwindState
 
class  Utf8WriterVisitor
 
class  Utils
 
class  Value
 
class  ValueDeserializer
 
class  ValueSerializer
 
class  WasmCompiledModule
 
class  WasmModuleObjectBuilderStreaming
 
class  WasmStreaming
 
class  WeakCallbackInfo
 
class  WeakCallbackObject
 
class  Worker
 
class  ZombieProtector
 

Typedefs

typedef uint32_t SnapshotObjectId
 
typedef uintptr_t PersistentContainerValue
 
template<class T >
using Handle = Local< T >
 
template<class T >
using UniquePersistent = Global< T >
 
typedef void(* AccessorGetterCallback) (Local< String > property, const PropertyCallbackInfo< Value > &info)
 
typedef void(* AccessorNameGetterCallback) (Local< Name > property, const PropertyCallbackInfo< Value > &info)
 
typedef void(* AccessorSetterCallback) (Local< String > property, Local< Value > value, const PropertyCallbackInfo< void > &info)
 
typedef void(* AccessorNameSetterCallback) (Local< Name > property, Local< Value > value, const PropertyCallbackInfo< void > &info)
 
typedef void(* FunctionCallback) (const FunctionCallbackInfo< Value > &info)
 
typedef void(* GenericNamedPropertyGetterCallback) (Local< Name > property, const PropertyCallbackInfo< Value > &info)
 
typedef void(* GenericNamedPropertySetterCallback) (Local< Name > property, Local< Value > value, const PropertyCallbackInfo< Value > &info)
 
typedef void(* GenericNamedPropertyQueryCallback) (Local< Name > property, const PropertyCallbackInfo< Integer > &info)
 
typedef void(* GenericNamedPropertyDeleterCallback) (Local< Name > property, const PropertyCallbackInfo< Boolean > &info)
 
typedef void(* GenericNamedPropertyEnumeratorCallback) (const PropertyCallbackInfo< Array > &info)
 
typedef void(* GenericNamedPropertyDefinerCallback) (Local< Name > property, const PropertyDescriptor &desc, const PropertyCallbackInfo< Value > &info)
 
typedef void(* GenericNamedPropertyDescriptorCallback) (Local< Name > property, const PropertyCallbackInfo< Value > &info)
 
typedef void(* IndexedPropertyGetterCallback) (uint32_t index, const PropertyCallbackInfo< Value > &info)
 
typedef void(* IndexedPropertySetterCallback) (uint32_t index, Local< Value > value, const PropertyCallbackInfo< Value > &info)
 
typedef void(* IndexedPropertyQueryCallback) (uint32_t index, const PropertyCallbackInfo< Integer > &info)
 
typedef void(* IndexedPropertyDeleterCallback) (uint32_t index, const PropertyCallbackInfo< Boolean > &info)
 
typedef void(* IndexedPropertyEnumeratorCallback) (const PropertyCallbackInfo< Array > &info)
 
typedef void(* IndexedPropertyDefinerCallback) (uint32_t index, const PropertyDescriptor &desc, const PropertyCallbackInfo< Value > &info)
 
typedef void(* IndexedPropertyDescriptorCallback) (uint32_t index, const PropertyCallbackInfo< Value > &info)
 
typedef bool(* AccessCheckCallback) (Local< Context > accessing_context, Local< Object > accessed_object, Local< Value > data)
 
typedef double async_id_t
 
typedef std::unordered_map< const char *, Counter *, CStringHasher, i::StringEqualsCounterMap
 

Enumerations

enum  CpuProfilingMode { kLeafNodeLineNumbers, kCallerLineNumbers }
 
enum  CodeEventType { kUnknownType }
 
enum  PersistentContainerCallbackType { kNotWeak, kWeakWithParameter, kWeakWithInternalFields }
 
enum  WeakCallbackType { kParameter, kInternalFields, kFinalizer }
 
enum  StateTag {
  JS, GC, PARSER, BYTECODE_COMPILER,
  COMPILER, OTHER, EXTERNAL, IDLE
}
 
enum  NewStringType { NewStringType::kNormal, NewStringType::kInternalized }
 
enum  PropertyAttribute { None = 0, ReadOnly = 1 << 0, DontEnum = 1 << 1, DontDelete = 1 << 2 }
 
enum  AccessControl { DEFAULT = 0, ALL_CAN_READ = 1, ALL_CAN_WRITE = 1 << 1, PROHIBITS_OVERWRITING = 1 << 2 }
 
enum  PropertyFilter {
  ALL_PROPERTIES = 0, ONLY_WRITABLE = 1, ONLY_ENUMERABLE = 2, ONLY_CONFIGURABLE = 4,
  SKIP_STRINGS = 8, SKIP_SYMBOLS = 16
}
 
enum  SideEffectType { kHasSideEffect, kHasNoSideEffect, kHasSideEffectToReceiver }
 
enum  KeyCollectionMode { kOwnOnly, kIncludePrototypes }
 
enum  IndexFilter { kIncludeIndices, kSkipIndices }
 
enum  KeyConversionMode { kConvertToString, kKeepNumbers }
 
enum  IntegrityLevel { kFrozen, kSealed }
 
enum  ConstructorBehavior { kThrow, kAllow }
 
enum  ArrayBufferCreationMode { kInternalized, kExternalized }
 
enum  Intrinsic
 
enum  AccessType {
  ACCESS_GET, ACCESS_SET, ACCESS_HAS, ACCESS_DELETE,
  ACCESS_KEYS
}
 
enum  PropertyHandlerFlags {
  PropertyHandlerFlags::kNone = 0, PropertyHandlerFlags::kAllCanRead = 1, PropertyHandlerFlags::kNonMasking = 1 << 1, PropertyHandlerFlags::kOnlyInterceptStrings = 1 << 2,
  PropertyHandlerFlags::kHasNoSideEffect = 1 << 3
}
 

Functions

constexpr uint32_t CurrentValueSerializerFormatVersion ()
 
bool TryHandleWebAssemblyTrapPosix (int sig_code, siginfo_t *info, void *context)
 
bool TryHandleWebAssemblyTrapWindows (EXCEPTION_POINTERS *exception)
 
V8_EXPORT length_ (0)
 
 ExternalOneByteStringResourceImpl (const char *data, size_t length)
 
const chardata () const override
 
size_t length () const override
 
template<typename T >
T ToCData (v8::internal::Object *obj)
 
template<>
v8::internal::Address ToCData (v8::internal::Object *obj)
 
template<typename T >
v8::internal::Handle< v8::internal::ObjectFromCData (v8::internal::Isolate *isolate, T obj)
 
template<>
v8::internal::Handle< v8::internal::ObjectFromCData (v8::internal::Isolate *isolate, v8::internal::Address obj)
 
 MAKE_TO_LOCAL (ToLocal, BigInt, BigInt)
 
void SetResourceConstraints (i::Isolate *isolate, const ResourceConstraints &constraints)
 
 STATIC_ASSERT (i::Internals::kEmbedderDataSlotSize==i::kEmbedderDataSlotSize)
 
Local< Context > NewContext (v8::Isolate *external_isolate, v8::ExtensionConfiguration *extensions, v8::MaybeLocal< ObjectTemplate > global_template, v8::MaybeLocal< Value > global_object, size_t context_snapshot_index, v8::DeserializeInternalFieldsCallback embedder_fields_deserializer)
 
 REGEXP_FLAG_ASSERT_EQ (kNone)
 
 REGEXP_FLAG_ASSERT_EQ (kGlobal)
 
 REGEXP_FLAG_ASSERT_EQ (kIgnoreCase)
 
 REGEXP_FLAG_ASSERT_EQ (kMultiline)
 
 REGEXP_FLAG_ASSERT_EQ (kSticky)
 
 REGEXP_FLAG_ASSERT_EQ (kUnicode)
 
void WasmMemoryDeleter (void *buffer, size_t lenght, void *info)
 
void ArrayBufferDeleter (void *buffer, size_t length, void *info)
 
 CALLBACK_SETTER (AllowCodeGenerationFromStringsCallback, AllowCodeGenerationFromStringsCallback, allow_code_gen_callback) CALLBACK_SETTER(AllowWasmCodeGenerationCallback
 
allow_wasm_code_gen_callback CALLBACK_SETTER (WasmCompileStreamingCallback, ApiImplementationCallback, wasm_compile_streaming_callback) CALLBACK_SETTER(WasmStreamingCallback
 
allow_wasm_code_gen_callback wasm_streaming_callback CALLBACK_SETTER (WasmThreadsEnabledCallback, WasmThreadsEnabledCallback, wasm_threads_enabled_callback) void Isolate
 
template<class T >
TToApi (v8::internal::Handle< v8::internal::Object > obj)
 
template<class T >
v8::Local< TToApiHandle (v8::internal::Handle< v8::internal::Object > obj)
 
template<class T >
bool ToLocal (v8::internal::MaybeHandle< v8::internal::Object > maybe, Local< T > *local)
 
std::unique_ptr< PlatformMakePredictablePlatform (std::unique_ptr< Platform > platform)
 
std::unique_ptr< PlatformMakeDelayedTasksPlatform (std::unique_ptr< Platform > platform, int64_t random_seed)
 
void WriteToFile (FILE *file, const v8::FunctionCallbackInfo< v8::Value > &args)
 
void WriteAndFlush (FILE *file, const v8::FunctionCallbackInfo< v8::Value > &args)
 
bool operator< (const CounterAndKey &lhs, const CounterAndKey &rhs)
 
bool ends_with (const char *input, const char *suffix)
 

Variables

V8_EXPORT ExternalOneByteStringResourceImpl
 

Detailed Description

Profiler support for the V8 JavaScript engine.

Testing support for the V8 JavaScript engine.

Support for Persistent containers.

C++11 embedders can use STL containers with Global values, but pre-C++11 does not support the required move semantic and hence may want these container classes.

Compile-time constants.

This header provides access to information about the value serializer at compile time, without declaring or defining any symbols that require linking to V8.

The v8 JavaScript engine.

Typedef Documentation

◆ AccessCheckCallback

typedef bool(* v8::AccessCheckCallback) (Local< Context > accessing_context, Local< Object > accessed_object, Local< Value > data)

Returns true if the given context should be allowed to access the given object.

Definition at line 5614 of file v8.h.

◆ AccessorGetterCallback

typedef void(* v8::AccessorGetterCallback) (Local< String > property, const PropertyCallbackInfo< Value > &info)

Accessor[Getter|Setter] are used as callback functions when setting|getting a particular property. See Object and ObjectTemplate's method SetAccessor.

Definition at line 3148 of file v8.h.

◆ GenericNamedPropertyDefinerCallback

typedef void(* v8::GenericNamedPropertyDefinerCallback) (Local< Name > property, const PropertyDescriptor &desc, const PropertyCallbackInfo< Value > &info)

Interceptor for defineProperty requests on an object.

Use info.GetReturnValue() to indicate whether the request was intercepted or not. If the definer successfully intercepts the request, i.e., if the request should not be further executed, call info.GetReturnValue().Set(value). If the definer did not intercept the request, i.e., if the request should be handled as if no interceptor is present, do not not call Set().

Parameters
propertyThe name of the property for which the request was intercepted.
descThe property descriptor which is used to define the property if the request is not intercepted.
infoInformation about the intercepted request, such as isolate, receiver, return value, or whether running in ‘'use strict’mode. SeePropertyCallbackInfo`.

See also ObjectTemplate::SetHandler.

Definition at line 5521 of file v8.h.

◆ GenericNamedPropertyDeleterCallback

typedef void(* v8::GenericNamedPropertyDeleterCallback) (Local< Name > property, const PropertyCallbackInfo< Boolean > &info)

Interceptor for delete requests on an object.

Use info.GetReturnValue() to indicate whether the request was intercepted or not. If the deleter successfully intercepts the request, i.e., if the request should not be further executed, call info.GetReturnValue().Set(value) with a boolean value. The value is used as the return value of delete.

Parameters
propertyThe name of the property for which the request was intercepted.
infoInformation about the intercepted request, such as isolate, receiver, return value, or whether running in ‘'use strict’mode. SeePropertyCallbackInfo`.
Note
If you need to mimic the behavior of delete, i.e., throw in strict mode instead of returning false, use info.ShouldThrowOnError() to determine if you are in strict mode.

See also ObjectTemplate::SetHandler.

Definition at line 5489 of file v8.h.

◆ GenericNamedPropertyDescriptorCallback

typedef void(* v8::GenericNamedPropertyDescriptorCallback) (Local< Name > property, const PropertyCallbackInfo< Value > &info)

Interceptor for getOwnPropertyDescriptor requests on an object.

Use info.GetReturnValue().Set() to set the return value of the intercepted request. The return value must be an object that can be converted to a PropertyDescriptor, e.g., a v8::value returned from v8::Object::getOwnPropertyDescriptor.

Parameters
propertyThe name of the property for which the request was intercepted. Information about the intercepted request, such as isolate, receiver, return value, or whether running in ‘'use strict’mode. SeePropertyCallbackInfo`.
Note
If GetOwnPropertyDescriptor is intercepted, it will always return true, i.e., indicate that the property was found.

See also ObjectTemplate::SetHandler.

Definition at line 5544 of file v8.h.

◆ GenericNamedPropertyEnumeratorCallback

typedef void(* v8::GenericNamedPropertyEnumeratorCallback) (const PropertyCallbackInfo< Array > &info)

Returns an array containing the names of the properties the named property getter intercepts.

Note: The values in the array must be of type v8::Name.

Definition at line 5498 of file v8.h.

◆ GenericNamedPropertyGetterCallback

typedef void(* v8::GenericNamedPropertyGetterCallback) (Local< Name > property, const PropertyCallbackInfo< Value > &info)

Interceptor for get requests on an object.

Use info.GetReturnValue().Set() to set the return value of the intercepted get request.

Parameters
propertyThe name of the property for which the request was intercepted.
infoInformation about the intercepted request, such as isolate, receiver, return value, or whether running in 'use strict' mode. See PropertyCallbackInfo.
void GetterCallback(
Local<Name> name,
info.GetReturnValue().Set(v8_num(42));
}
templ->InstanceTemplate()->SetHandler(
LocalContext env;
env->Global()
->Set(env.local(), v8_str("obj"), templ->GetFunction(env.local())
.ToLocalChecked()
->NewInstance(env.local())
.ToLocalChecked())
.FromJust();
v8::Local<v8::Value> result = CompileRun("obj.a = 17; obj.a");
CHECK(v8_num(42)->Equals(env.local(), result).FromJust());

See also ObjectTemplate::SetHandler.

Definition at line 5416 of file v8.h.

◆ GenericNamedPropertyQueryCallback

typedef void(* v8::GenericNamedPropertyQueryCallback) (Local< Name > property, const PropertyCallbackInfo< Integer > &info)

Intercepts all requests that query the attributes of the property, e.g., getOwnPropertyDescriptor(), propertyIsEnumerable(), and defineProperty().

Use info.GetReturnValue().Set(value) to set the property attributes. The value is an integer encoding a v8::PropertyAttribute.

Parameters
propertyThe name of the property for which the request was intercepted.
infoInformation about the intercepted request, such as isolate, receiver, return value, or whether running in ‘'use strict’mode. SeePropertyCallbackInfo`.
Note
Some functions query the property attributes internally, even though they do not return the attributes. For example, hasOwnProperty() can trigger this interceptor depending on the state of the object.

See also ObjectTemplate::SetHandler.

Definition at line 5465 of file v8.h.

◆ GenericNamedPropertySetterCallback

typedef void(* v8::GenericNamedPropertySetterCallback) (Local< Name > property, Local< Value > value, const PropertyCallbackInfo< Value > &info)

Interceptor for set requests on an object.

Use info.GetReturnValue() to indicate whether the request was intercepted or not. If the setter successfully intercepts the request, i.e., if the request should not be further executed, call info.GetReturnValue().Set(value). If the setter did not intercept the request, i.e., if the request should be handled as if no interceptor is present, do not not call Set().

Parameters
propertyThe name of the property for which the request was intercepted.
valueThe value which the property will have if the request is not intercepted.
infoInformation about the intercepted request, such as isolate, receiver, return value, or whether running in ‘'use strict’mode. SeePropertyCallbackInfo`.

See also ObjectTemplate::SetHandler.

Definition at line 5440 of file v8.h.

◆ IndexedPropertyDefinerCallback

typedef void(* v8::IndexedPropertyDefinerCallback) (uint32_t index, const PropertyDescriptor &desc, const PropertyCallbackInfo< Value > &info)

See v8::GenericNamedPropertyDefinerCallback.

Definition at line 5588 of file v8.h.

◆ IndexedPropertyDeleterCallback

typedef void(* v8::IndexedPropertyDeleterCallback) (uint32_t index, const PropertyCallbackInfo< Boolean > &info)

See v8::GenericNamedPropertyDeleterCallback.

Definition at line 5572 of file v8.h.

◆ IndexedPropertyDescriptorCallback

typedef void(* v8::IndexedPropertyDescriptorCallback) (uint32_t index, const PropertyCallbackInfo< Value > &info)

See v8::GenericNamedPropertyDescriptorCallback.

Definition at line 5595 of file v8.h.

◆ IndexedPropertyEnumeratorCallback

typedef void(* v8::IndexedPropertyEnumeratorCallback) (const PropertyCallbackInfo< Array > &info)

Returns an array containing the indices of the properties the indexed property getter intercepts.

Note: The values in the array must be uint32_t.

Definition at line 5582 of file v8.h.

◆ IndexedPropertyGetterCallback

typedef void(* v8::IndexedPropertyGetterCallback) (uint32_t index, const PropertyCallbackInfo< Value > &info)

See v8::GenericNamedPropertyGetterCallback.

Definition at line 5550 of file v8.h.

◆ IndexedPropertyQueryCallback

typedef void(* v8::IndexedPropertyQueryCallback) (uint32_t index, const PropertyCallbackInfo< Integer > &info)

See v8::GenericNamedPropertyQueryCallback.

Definition at line 5565 of file v8.h.

◆ IndexedPropertySetterCallback

typedef void(* v8::IndexedPropertySetterCallback) (uint32_t index, Local< Value > value, const PropertyCallbackInfo< Value > &info)

See v8::GenericNamedPropertySetterCallback.

Definition at line 5557 of file v8.h.

Enumeration Type Documentation

◆ AccessControl

Access control specifications.

Some accessors should be accessible across contexts. These accessors have an explicit access control parameter which specifies the kind of cross-context access that should be allowed.

TODO(dcarney): Remove PROHIBITS_OVERWRITING as it is now unused.

Definition at line 3175 of file v8.h.

◆ AccessType

Access type specification.

Definition at line 5601 of file v8.h.

◆ CodeEventType

Note that this enum may be extended in the future. Please include a default case if this enum is used in a switch statement.

Definition at line 1064 of file v8-profiler.h.

◆ IndexFilter

enum v8::IndexFilter
strong

kIncludesIndices allows for integer indices to be collected, while kSkipIndices will exclude integer indices from being collected.

Definition at line 3223 of file v8.h.

◆ IntegrityLevel

enum v8::IntegrityLevel
strong

Integrity level for objects.

Definition at line 3234 of file v8.h.

◆ KeyCollectionMode

enum v8::KeyCollectionMode
strong

Keys/Properties filter enums:

KeyCollectionMode limits the range of collected properties. kOwnOnly limits the collected properties to the given Object only. kIncludesPrototypes will include all keys of the objects's prototype chain as well.

Definition at line 3217 of file v8.h.

◆ KeyConversionMode

enum v8::KeyConversionMode
strong

kConvertToString will convert integer indices to strings. kKeepNumbers will return numbers for integer indices.

Definition at line 3229 of file v8.h.

◆ NewStringType

enum v8::NewStringType
strong

A flag describing different modes of string creation.

Aside from performance implications there are no differences between the two creation modes.

Enumerator
kNormal 

Create a new string, always allocating new storage memory.

kInternalized 

Acts as a hint that the string should be created in the old generation heap space and be deduplicated if an identical string already exists.

Definition at line 2520 of file v8.h.

◆ PropertyAttribute

PropertyAttribute.

Enumerator
None 

None.

ReadOnly 

ReadOnly, i.e., not writable.

DontEnum 

DontEnum, i.e., not enumerable.

DontDelete 

DontDelete, i.e., not configurable.

Definition at line 3132 of file v8.h.

◆ PropertyFilter

Property filter bits. They can be or'ed to build a composite filter.

Definition at line 3185 of file v8.h.

◆ PropertyHandlerFlags

Configuration flags for v8::NamedPropertyHandlerConfiguration or v8::IndexedPropertyHandlerConfiguration.

Enumerator
kNone 

None.

kAllCanRead 

See ALL_CAN_READ above.

kNonMasking 

Will not call into interceptor for properties on the receiver or prototype chain, i.e., only call into interceptor for properties that do not exist. Currently only valid for named interceptors.

kOnlyInterceptStrings 

Will not call into interceptor for symbol lookup. Only meaningful for named interceptors.

kHasNoSideEffect 

The getter, query, enumerator callbacks do not produce side effects.

Definition at line 5851 of file v8.h.

◆ SideEffectType

enum v8::SideEffectType
strong

Options for marking whether callbacks may trigger JS-observable side effects. Side-effect-free callbacks are whitelisted during debug evaluation with throwOnSideEffect. It applies when calling a Function, FunctionTemplate, or an Accessor callback. For Interceptors, please see PropertyHandlerFlags's kHasNoSideEffect. Callbacks that only cause side effects to the receiver are whitelisted if invoked on receiver objects that are created within the same debug-evaluate call, as these objects are temporary and the side effect does not escape.

Definition at line 3204 of file v8.h.

Function Documentation

◆ TryHandleWebAssemblyTrapPosix()

bool v8::TryHandleWebAssemblyTrapPosix ( int  sig_code,
siginfo_t *  info,
void *  context 
)

This function determines whether a memory access violation has been an out-of-bounds memory access in WebAssembly. If so, it will modify the context parameter and add a return address where the execution can continue after the signal handling, and return true. Otherwise, false will be returned.

The parameters to this function correspond to those passed to a Posix signal handler. Use this function only on Linux and Mac.

Parameters
sig_codeThe signal code, e.g. SIGSEGV.
infoA pointer to the siginfo_t struct provided to the signal handler.
contextA pointer to a ucontext_t struct provided to the signal handler.

◆ TryHandleWebAssemblyTrapWindows()

bool v8::TryHandleWebAssemblyTrapWindows ( EXCEPTION_POINTERS *  exception)

This function determines whether a memory access violation has been an out-of-bounds memory access in WebAssembly. If so, it will modify the exception parameter and add a return address where the execution can continue after the exception handling, and return true. Otherwise the return value will be false.

The parameter to this function corresponds to the one passed to a Windows vectored exception handler. Use this function only on Windows.

Parameters
exceptionAn EXCEPTION_POINTERS* as provided to the exception handler.