Stefan Siegl
35e9fd849d
Add tests.
2013-07-12 20:23:12 +02:00
Patrick Reilly
347442c471
Merge pull request #17 from stesie/fix-object-creation-leak-master
...
v8js leaks memory if objects are returned to javascript (fix)
2013-07-11 14:22:20 -07:00
Patrick Reilly
8bf1b92683
Merge pull request #22 from stesie/add-test-regression-pr14
...
Add test for regression pointed out in pull request #14
2013-07-11 14:21:53 -07:00
Patrick Reilly
6d19d780f9
Merge pull request #23 from stesie/fix-deprecated-calls
...
Replace deprecated calls to V8 API by newer equivalents
2013-07-11 14:21:36 -07:00
Stefan Siegl
ffa42cdfaf
Replaced deprecated v8 api calls with newer equivalents
2013-07-08 00:58:19 +02:00
Patrick Reilly
1ba175673f
Merge pull request #20 from andrewtch/patch-1
...
Update README.md
2013-07-07 15:11:51 -07:00
Stefan Siegl
a3957f3844
Add test for regression pointed out in pull request #14
2013-07-07 23:04:19 +02:00
Stefan Siegl
6eeb6fe9d6
Use v8::Isolate version of v8::Context::New
2013-07-07 22:36:56 +02:00
andrewtch
f8203e1a73
Update README.md
...
Updated readme to fix #19
2013-07-07 23:29:05 +03:00
Stefan Siegl
ee659bdf41
Correctly attach hidden values to objects from cached templates.
2013-06-12 17:29:00 +02:00
Stefan Siegl
bc1cf7c5bb
Use weak persistent handles and DELREF zval.
2013-06-12 17:26:36 +02:00
Stefan Siegl
90ed152f40
Cache and re-use v8::FunctionTemplate on object wrapping
2013-06-12 17:07:48 +02:00
beest
a17b3c47a0
Merge pull request #16 from stesie/add-gitignore-file
...
.gitignore file.
2013-06-11 07:41:53 -07:00
Stefan Siegl
d0037b1886
Add .gitignore file.
2013-06-11 09:21:35 +02:00
Patrick Reilly
d7bded2a31
Merge pull request #14 from stesie/fix-temp-context-leak
...
Memory leak in php_v8js_v8_get_properties
2013-06-10 09:50:25 -07:00
Stefan Siegl
a951b82a40
Use persistent context + Dispose
2013-06-10 16:57:56 +02:00
Stefan Siegl
6106f46d4c
Remove leaked temp_context allocation
2013-06-08 01:44:13 +02:00
Patrick Reilly
4de01ce1cf
Merge pull request #11 from andrewtch/test-fix
...
fixed tests using absolute urls
2013-05-19 08:27:42 -07:00
Andrew Tch
de2479aca6
fixed tests using absolute urls
2013-05-19 17:56:54 +03:00
Patrick Reilly
98638c78db
fix for format '%d' expects argument of type 'int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat]
2013-05-16 16:59:41 -07:00
Patrick Reilly
4a82311b4d
fix mutex issue and c++11 support on Ubuntu — remove stray EOL marker
2013-05-15 12:21:38 -07:00
Ferenc Kovacs
2f567192be
empty commit for pushing to the github repo
2013-05-10 13:07:26 +02:00
Patrick Reilly
6f44220328
fix merge conflict
2013-05-09 15:55:30 -07:00
Patrick Reilly
ba27e5eb2b
small fix in github readme
2013-05-09 15:50:56 -07:00
Patrick Reilly
f9d363c64e
add Simon Best to credits
2013-05-09 15:46:14 -07:00
Patrick Reilly
ec8444cfda
Use the Z_ADDREF_P macro to increasing the refcount of PHP values assigned to V8
2013-05-09 15:43:27 -07:00
Patrick Reilly
de2d78a144
Always increase the zval reference count before storing it in a V8 internal field
2013-05-09 15:38:37 -07:00
Patrick Reilly
edb8609cfe
Fix for https://github.com/preillyme/v8js/issues/6 . This is probably …
...
… horrible hack but it works for now until we have a better solution.
2013-05-09 15:34:25 -07:00
Simon Best
91b1a2fbd2
Added a test for CommonJS modules.
2013-05-09 23:14:02 +01:00
Patrick Reilly
0db973bee3
Fix version
2013-05-09 09:24:10 -07:00
Patrick Reilly
713d4119da
Merge branch master of github.com:preillyme/v8js
2013-05-09 09:17:39 -07:00
Simon Best
9c9500dbc5
More updates to GitHub README.
2013-04-15 22:01:35 +01:00
Simon Best
01d8d0b34e
Updated README for GitHub.
2013-04-15 21:59:55 +01:00
Simon Best
4a21bfe56e
Updated README for GitHub.
2013-04-15 21:57:43 +01:00
Simon Best
916728fa8a
Added simple tests for time limit and memory limit.
2013-04-14 12:31:35 +01:00
Simon Best
ef8620f0c2
Fix to start timer thread when there is a memory limit but no time limit.
2013-04-14 12:23:39 +01:00
Simon Best
e778b6d7af
Fix for SetFatalErrorHandler. This needs to be called for every context isolate.
2013-04-14 11:19:50 +01:00
Simon Best
7e90439cdf
Make sure all tests and samples use the new exception class name V8JsScriptException.
2013-04-14 00:36:31 +01:00
Simon Best
8d8c671aa0
V8 isolates need to be passed into all variable accessor and conversion functions.
2013-04-14 00:36:05 +01:00
Simon Best
8ae7606338
Refactor CommonJS modules functionality to store state in the extension globals and context as appropriate.
2013-04-13 00:00:27 +01:00
Simon Best
46e509c0a9
Use the PHP memory management functions emalloc and efree.
2013-04-12 16:49:07 +01:00
Simon Best
147b743d4c
Removed v8::V8::Dispose call because it was causing SIGTRAPs in some exit scenarios. This is probably due to using the debug version of V8, but the documentation states that it's not necessary to call this anyway.
2013-04-11 22:57:25 +01:00
Simon Best
93df3411d9
Merged CommonJS modules functionality.
2013-04-11 17:15:55 +01:00
Simon Best
e05f811954
Renamed V8JsException to V8JsScriptException and added V8JsTimeLimitException and V8JsMemoryLimitException classes.
2013-04-11 00:23:47 +01:00
Simon Best
9d9ad831b8
Implemented memory limit checking. Increased stability for V8 execution isolates.
2013-04-11 00:08:05 +01:00
Simon Best
80a56e551a
Added my name to the credits :-)
2013-04-09 22:52:52 +01:00
Simon Best
15dc9e157b
Script timeout thread to forcefully terminate the current thread of V8 execution in the corresponding isolate.
...
Note that threads are implemented using std::thread which is only available in C++0x. The relevant compile flags have been added but compiler support has not been tested and is therefore not guaranteed.
2013-04-09 22:52:42 +01:00
Simon Best
be0cd75c65
Improve compatibility with NodeJS-style module.exports and exports. This allows arbitrary types to be exported, not just properties of the exports object.
2013-03-26 00:09:21 +00:00
Simon Best
99878e2995
Support for relative and absolute module identifiers.
2013-03-25 00:02:13 +00:00
Simon Best
db50fc25d1
Removed spurious number from exception message.
2013-03-24 22:56:55 +00:00