summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/env.h b/src/env.h
index c0c8ac0db4..c25a03ea1e 100644
--- a/src/env.h
+++ b/src/env.h
@@ -541,7 +541,8 @@ struct ContextInfo {
#define DEBUG_CATEGORY_NAMES(V) \
NODE_ASYNC_PROVIDER_TYPES(V) \
V(INSPECTOR_SERVER) \
- V(INSPECTOR_PROFILER)
+ V(INSPECTOR_PROFILER) \
+ V(WASI)
enum class DebugCategory {
#define V(name) name,
@@ -1114,6 +1115,11 @@ class Environment : public MemoryRetainer {
const char* name,
v8::FunctionCallback callback);
+ inline void SetInstanceMethod(v8::Local<v8::FunctionTemplate> that,
+ const char* name,
+ v8::FunctionCallback callback);
+
+
// Safe variants denote the function has no side effects.
inline void SetMethodNoSideEffect(v8::Local<v8::Object> that,
const char* name,