Skip to content

Commit 09a5456

Browse files
committed
Version 1.3.0
1 parent ecc24a2 commit 09a5456

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ Include the `phpv8/v8js-stubs` repository in the **require-dev** section of your
1616

1717
```json
1818
"require-dev": {
19-
"phpv8/v8js-stubs": "~1.2"
19+
"phpv8/v8js-stubs": "^1.3.0"
2020
}
2121
```

composer.lock

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/V8Js.php

+10
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ public function setTimeLimit($limit)
9999
public function setMemoryLimit($limit)
100100
{}
101101

102+
/**
103+
* Set the average object size (in bytes) for this V8Js object.
104+
* V8's "amount of external memory" is adjusted by this value for every exported object.
105+
* V8 triggers a garbage collection once this totals to 192 MB.
106+
*
107+
* @param int $average_object_size
108+
*/
109+
public function setAverageObjectSize($average_object_size)
110+
{}
111+
102112
/**
103113
* Returns uncaught pending exception or null if there is no pending exception.
104114
*

0 commit comments

Comments
 (0)