mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
LibJS: Make ScriptOrModule use WeakPtr instead of raw pointers
This commit is contained in:
parent
6ee597369d
commit
85cf80507f
9 changed files with 23 additions and 18 deletions
|
@ -53,7 +53,9 @@ struct ResolvedBinding {
|
|||
};
|
||||
|
||||
// 16.2.1.4 Abstract Module Records, https://tc39.es/ecma262/#sec-abstract-module-records
|
||||
class Module : public RefCounted<Module> {
|
||||
class Module
|
||||
: public RefCounted<Module>
|
||||
, public Weakable<Module> {
|
||||
public:
|
||||
virtual ~Module();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue