0
0
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:
jalr 2019-05-10 08:24:08 +02:00 committed by GitHub
parent 148bc50445
commit 30e2ac6fa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}