From 7dcff4f3c92a4e7298bd5d6bba5a5891f27ad9c8 Mon Sep 17 00:00:00 2001 From: Mark Grainger Date: Thu, 15 Feb 2024 08:50:27 +0000 Subject: [PATCH] Fixed compile issue against V8 12 --- v8js_variables.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v8js_variables.cc b/v8js_variables.cc index f546f79..2cb9162 100644 --- a/v8js_variables.cc +++ b/v8js_variables.cc @@ -80,7 +80,7 @@ void v8js_register_accessors(std::vector *accessor_list, v8: ctx->isolate = isolate; /* Set the variable fetch callback for given symbol on named property */ - php_obj->SetAccessor(V8JS_STRL(ZSTR_VAL(property_name), static_cast(ZSTR_LEN(property_name))), v8js_fetch_php_variable, NULL, v8::External::New(isolate, ctx), v8::PROHIBITS_OVERWRITING, v8::ReadOnly); + php_obj->SetAccessor(V8JS_STRL(ZSTR_VAL(property_name), static_cast(ZSTR_LEN(property_name))), v8js_fetch_php_variable, NULL, v8::External::New(isolate, ctx), v8::DEFAULT, v8::ReadOnly); /* record the context so we can free it later */ accessor_list->push_back(ctx);