From 09a54566b8493d6a73f0e4d1c9b8c7cf9663f09e Mon Sep 17 00:00:00 2001 From: Mark Johnson Date: Sat, 28 Jan 2017 09:54:57 -0800 Subject: [PATCH] Version 1.3.0 --- README.md | 2 +- composer.lock | 1 - src/V8Js.php | 10 ++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3bd7dbb..393bc96 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,6 @@ Include the `phpv8/v8js-stubs` repository in the **require-dev** section of your ```json "require-dev": { - "phpv8/v8js-stubs": "~1.2" + "phpv8/v8js-stubs": "^1.3.0" } ``` \ No newline at end of file diff --git a/composer.lock b/composer.lock index 79d4852..2416ac2 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,6 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "6e0a2bbfeeda262197690e157e723a52", "content-hash": "f95c19569e5403e192695953a857fab2", "packages": [], "packages-dev": [], diff --git a/src/V8Js.php b/src/V8Js.php index 49d98c4..5cca472 100644 --- a/src/V8Js.php +++ b/src/V8Js.php @@ -99,6 +99,16 @@ public function setTimeLimit($limit) public function setMemoryLimit($limit) {} + /** + * Set the average object size (in bytes) for this V8Js object. + * V8's "amount of external memory" is adjusted by this value for every exported object. + * V8 triggers a garbage collection once this totals to 192 MB. + * + * @param int $average_object_size + */ + public function setAverageObjectSize($average_object_size) + {} + /** * Returns uncaught pending exception or null if there is no pending exception. *