summaryrefslogtreecommitdiff
path: root/src/node_v8.h
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2021-02-08 23:19:37 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2021-02-19 19:08:07 +0800
commit445108dc30968ae2adc1d027fb7c57db4d7b8372 (patch)
treec594cdff5b57a5f589937751b56f037ef50f4fc8 /src/node_v8.h
parent8aa9b772f4892ab44e74d3e7df0733408b7d2bc8 (diff)
downloadnode-new-445108dc30968ae2adc1d027fb7c57db4d7b8372.tar.gz
bootstrap: include v8 module into the builtin snapshot
PR-URL: https://github.com/nodejs/node/pull/36943 Fixes: https://github.com/nodejs/node/issues/35930 Refs: https://github.com/nodejs/node/issues/35711 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_v8.h')
-rw-r--r--src/node_v8.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/node_v8.h b/src/node_v8.h
index 745c6580b8..5de8cb3f9c 100644
--- a/src/node_v8.h
+++ b/src/node_v8.h
@@ -5,18 +5,23 @@
#include "aliased_buffer.h"
#include "base_object.h"
+#include "node_snapshotable.h"
#include "util.h"
#include "v8.h"
namespace node {
class Environment;
+struct InternalFieldInfo;
namespace v8_utils {
-class BindingData : public BaseObject {
+class BindingData : public SnapshotableObject {
public:
BindingData(Environment* env, v8::Local<v8::Object> obj);
+ SERIALIZABLE_OBJECT_METHODS()
static constexpr FastStringKey type_name{"node::v8::BindingData"};
+ static constexpr EmbedderObjectType type_int =
+ EmbedderObjectType::k_v8_binding_data;
AliasedFloat64Array heap_statistics_buffer;
AliasedFloat64Array heap_space_statistics_buffer;