ASSERT(frame.Self.IsObjectType<Namespace>());
frameNS = frame.Self;
+
+ ASSERT(frameNS != ScriptGlobal::GetGlobals());
}
frameNS->Set("obj", target);
if (qd.Types.find(type) == qd.Types.end())
BOOST_THROW_EXCEPTION(std::invalid_argument("Invalid type specified for this query."));
- ScriptFrame frame(true);
- frame.Sandboxed = true;
Namespace::Ptr frameNS = new Namespace();
+ ScriptFrame frame(true, frameNS);
+ frame.Sandboxed = true;
if (query->Contains("filter")) {
String filter = HttpUtility::GetLastParameter(query, "filter");
}
}
- frame.Self = frameNS;
-
provider->FindTargets(type, std::bind(&FilteredAddTarget,
std::ref(permissionFrame), permissionFilter,
std::ref(frame), &*ufilter, std::ref(result), variableName, _1));