Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/V8Js.php

Lines changed: 10 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /