mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 23:14:13 +01:00
ircd::js: Persistent string for trap map to be sure.
This commit is contained in:
parent
64057fc101
commit
5ebd15c983
2 changed files with 2 additions and 1 deletions
|
@ -114,6 +114,7 @@ template<lifetime L> std::ostream & operator<<(std::ostream &os, const string<L>
|
|||
|
||||
using string = basic::string<lifetime::stack>;
|
||||
using heap_string = basic::string<lifetime::heap>;
|
||||
using persist_string = basic::string<lifetime::persist>;
|
||||
|
||||
//
|
||||
// Implementation
|
||||
|
|
|
@ -33,7 +33,7 @@ class trap
|
|||
JSPropertySpec ps[2];
|
||||
JSFunctionSpec fs[2];
|
||||
std::unique_ptr<JSClass> _class;
|
||||
std::map<heap_string, trap *, heap_string::less> children;
|
||||
std::map<persist_string, trap *, persist_string::less> children;
|
||||
|
||||
// Override these to define JS objects in C
|
||||
virtual value on_call(object::handle, const args &);
|
||||
|
|
Loading…
Reference in a new issue