Skip to content

Commit

Permalink
Version 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
virgofx committed Jan 28, 2017
1 parent ecc24a2 commit 09a5456
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
```
1 change: 0 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions src/V8Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 09a5456

Please sign in to comment.