mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-05 17:21:51 +00:00
ForceDelete was removed, use normal Delete
This commit is contained in:
parent
ddc6a46049
commit
7b926a3d06
@ -1104,7 +1104,7 @@ static void v8js_unset_property(zval *object, zval *member ZEND_HASH_KEY_DC TSRM
|
||||
v8::Local<v8::Object> jsobj = V8JS_GLOBAL(isolate)->Get(object_name_js)->ToObject();
|
||||
|
||||
/* Delete value from PHP JS object */
|
||||
jsobj->ForceDelete(V8JS_SYML(Z_STRVAL_P(member), Z_STRLEN_P(member)));
|
||||
jsobj->Delete(V8JS_SYML(Z_STRVAL_P(member), Z_STRLEN_P(member)));
|
||||
|
||||
/* Unset from PHP object */
|
||||
std_object_handlers.unset_property(object, member ZEND_HASH_KEY_CC TSRMLS_CC);
|
||||
|
@ -210,7 +210,7 @@ static void v8js_v8object_unset_property(zval *object, zval *member ZEND_HASH_KE
|
||||
v8::Local<v8::Value> v8obj = v8::Local<v8::Value>::New(isolate, obj->v8obj);
|
||||
|
||||
if (v8obj->IsObject() && !v8obj->IsFunction()) {
|
||||
v8obj->ToObject()->ForceDelete(V8JS_SYML(Z_STRVAL_P(member), Z_STRLEN_P(member)));
|
||||
v8obj->ToObject()->Delete(V8JS_SYML(Z_STRVAL_P(member), Z_STRLEN_P(member)));
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
Loading…
Reference in New Issue
Block a user