mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 08:11:52 +00:00
Call v8::RegisterExtension using unique_ptr
This commit is contained in:
parent
148bc50445
commit
30e2ac6fa8
@ -1069,7 +1069,7 @@ static int v8js_register_extension(zend_string *name, zend_string *source, zval
|
||||
#endif
|
||||
|
||||
jsext->extension->set_auto_enable(auto_enable ? true : false);
|
||||
v8::RegisterExtension(jsext->extension);
|
||||
v8::RegisterExtension(std::unique_ptr<v8::Extension>(jsext->extension));
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user