summaryrefslogtreecommitdiff
path: root/src/node_contextify.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_contextify.cc')
-rw-r--r--src/node_contextify.cc42
1 files changed, 2 insertions, 40 deletions
diff --git a/src/node_contextify.cc b/src/node_contextify.cc
index 92e2ed9429..8b9fef5480 100644
--- a/src/node_contextify.cc
+++ b/src/node_contextify.cc
@@ -143,21 +143,19 @@ Local<Context> ContextifyContext::CreateV8Context(
NamedPropertyHandlerConfiguration config(PropertyGetterCallback,
PropertySetterCallback,
- PropertyQueryCallback,
+ PropertyDescriptorCallback,
PropertyDeleterCallback,
PropertyEnumeratorCallback,
PropertyDefinerCallback,
- PropertyDescriptorCallback,
CreateDataWrapper(env));
IndexedPropertyHandlerConfiguration indexed_config(
IndexedPropertyGetterCallback,
IndexedPropertySetterCallback,
- IndexedPropertyQueryCallback,
+ IndexedPropertyDescriptorCallback,
IndexedPropertyDeleterCallback,
PropertyEnumeratorCallback,
IndexedPropertyDefinerCallback,
- IndexedPropertyDescriptorCallback,
CreateDataWrapper(env));
object_template->SetHandler(config);
@@ -394,28 +392,6 @@ void ContextifyContext::PropertySetterCallback(
}
// static
-void ContextifyContext::PropertyQueryCallback(
- Local<Name> property,
- const PropertyCallbackInfo<Integer>& args) {
- ContextifyContext* ctx = ContextifyContext::Get(args);
-
- // Still initializing
- if (ctx->context_.IsEmpty())
- return;
-
- Local<Context> context = ctx->context();
-
- Local<Object> sandbox = ctx->sandbox();
-
- PropertyAttribute attributes;
- if (sandbox->HasOwnProperty(context, property).FromMaybe(false) &&
- sandbox->GetPropertyAttributes(context, property).To(&attributes)) {
- args.GetReturnValue().Set(attributes);
- }
-}
-
-
-// static
void ContextifyContext::PropertyDescriptorCallback(
Local<Name> property,
const PropertyCallbackInfo<Value>& args) {
@@ -561,20 +537,6 @@ void ContextifyContext::IndexedPropertySetterCallback(
}
// static
-void ContextifyContext::IndexedPropertyQueryCallback(
- uint32_t index,
- const PropertyCallbackInfo<Integer>& args) {
- ContextifyContext* ctx = ContextifyContext::Get(args);
-
- // Still initializing
- if (ctx->context_.IsEmpty())
- return;
-
- ContextifyContext::PropertyQueryCallback(
- Uint32ToName(ctx->context(), index), args);
-}
-
-// static
void ContextifyContext::IndexedPropertyDescriptorCallback(
uint32_t index,
const PropertyCallbackInfo<Value>& args) {