Stefan Siegl
bf6effba63
Merge remote-tracking branch 'origin/master' into php7
2016-03-05 22:21:42 +01:00
Stefan Siegl
87b29749b9
Merge pull request #207 from stesie/custom-snapshots
...
Handle V8 heap snapshots well + allow custom snapshot generation
2016-03-05 19:27:40 +01:00
Stefan Siegl
67269ddfc4
Adapt test expectations to V8 error message changes
...
V8 5.1 uses slightly changed SyntaxError messages.
This adapts our tests as needed (for support of V8 5.1 as well
as older versions)
2016-03-05 17:11:52 +01:00
Stefan Siegl
4df6e80be9
Add testcase on V8Js::createSnapshot
2016-03-05 14:12:19 +01:00
Stefan Siegl
3808f69dea
Adapt tests V8 3.24 also
2016-01-09 21:45:10 +01:00
Stefan Siegl
796ae85cb6
Adapt tests to different V8 versions
2016-01-09 21:36:30 +01:00
Stefan Siegl
4a8a8b812f
Add test that V8Js::__sleep and V8Js::__wakeup are final
2016-01-09 19:15:12 +01:00
Stefan Siegl
d438624a3d
Don't export V8Js methods even if overwritten
2016-01-09 19:11:30 +01:00
Stefan Siegl
1e86e2c9f7
Don't export methods of V8Js object to V8
2016-01-09 19:02:58 +01:00
Stefan Siegl
e2636b2e71
Skip Generator export tests if not supported
2016-01-09 14:24:49 +01:00
Stefan Siegl
dbe29d7e96
Add more tests on exported (PHP) Generator objects
2016-01-09 13:19:23 +01:00
Stefan Siegl
a18ae9e853
Implement JS-side wrapper around PHP Generator objects
2016-01-09 12:50:40 +01:00
Stefan Siegl
e0f990bfa1
Add test with private/protected methods, refs #183
2016-01-08 15:47:24 +01:00
Stefan Siegl
38b9c053a1
Enable V8Generator support on V8 >= 3.30.0
2016-01-08 00:12:06 +01:00
Stefan Siegl
a4b4934361
Relax EXPECTF, some V8 versions fail to provide the error location
2016-01-08 00:00:12 +01:00
Stefan Siegl
c500d0c21e
Add test on property passing on generators
2016-01-07 23:19:31 +01:00
Stefan Siegl
798a87e481
Add test on fatal errors within JS generators
2016-01-07 23:16:59 +01:00
Stefan Siegl
46fba810af
Add test on PHP exceptions thrown by JS generators
2016-01-07 23:15:13 +01:00
Stefan Siegl
479d14b5b0
Handle exceptions thrown in JS generators well
2016-01-07 23:12:43 +01:00
Stefan Siegl
6fa6f9316e
Test yield from JS generators
2016-01-07 23:00:45 +01:00
Stefan Siegl
f97a25b69c
Test & implement PHP-side instantiation of JS generators
2016-01-07 22:57:50 +01:00
Stefan Siegl
da64b9f055
Handle rewind on primed V8Generator
2016-01-07 22:48:01 +01:00
Stefan Siegl
e686603b89
Implement direct iteration on JS generators
2016-01-07 22:41:13 +01:00
Stefan Siegl
2c7a7ab87d
Implement PHP-side iteration of JS generator objects
2016-01-07 21:35:44 +01:00
Stefan Siegl
ef779d8250
minimalist V8 -> PHP generator passing
2016-01-07 20:41:40 +01:00
Stefan Siegl
0945749e7c
add basic test on issue #183
2016-01-07 13:44:40 +01:00
Stefan Siegl
adb8288061
Make set_time_limit tests slower
...
... to reduce the risk of false positives on slower (or busier) boxes.
2016-01-06 17:23:22 +01:00
Stefan Siegl
1d1b87bda3
skip extensions_error.phpt on Windows
2016-01-06 13:26:55 +00:00
Stefan Siegl
c2a2cc341f
Initialize libv8_platform for Windows as well
...
V8 doesn't work without libplatform anymore, even under
Windows.
Furthermore adapted two tests to \r\n vs. \n line
ending differences
2016-01-06 11:58:40 +00:00
Stefan Siegl
362eb0b806
Merge pull request #190 from stesie/warn-only-on-v8-errors
...
Don't abort PHP on fatal V8 errors, just warn about it
2015-12-31 21:42:00 +01:00
Stefan Siegl
2d34adb91f
Merge remote-tracking branch 'origin/master'
...
This primarily ports features introduced with V8Js 0.4.0
to the PHP7 branch.
2015-12-31 20:25:24 +01:00
Stefan Siegl
de23e8dba4
Don't abort PHP on fatal V8 errors, just warn about it
...
This way the PHP script can handle V8 errors gracefully
(and e.g. provide feedback to the user).
This especially changes behaviour when circular extension
dependencies happen (PHP code can go on, just V8 fails
to start). This also fixes memory leaks of V8 and V8Js
itself caused by bailing out directly otherwise.
2015-12-30 17:53:46 +01:00
Stefan Siegl
3c5508b956
Provide correct "this" on V8Object method invocation, closes #185
2015-12-26 12:16:17 +01:00
Stefan Siegl
67a9de01bd
Allow custom module normalisation
2015-12-06 13:55:13 +01:00
Stefan Siegl
bf58fe67c1
wrap module loading in zend_try/zend_catch, closes #178
2015-12-04 22:09:04 +01:00
Stefan Siegl
39fff2301e
Use module id as JsFileName for V8
...
This way the information to V8JsScriptException instances are way
more clear since they contain the name of the module that caused
the exception.
2015-12-04 21:46:54 +01:00
Stefan Siegl
97a9a2cc74
tests/pthreads_001: don't test pthread ext internals
2015-12-04 19:22:29 +01:00
Stefan Siegl
059e0500fb
Merge remote-tracking branch 'origin/master' into php7
2015-11-29 12:21:40 +01:00
Matt Kynaston
a58f944804
Experiment to see if #172 is easy to fix
2015-11-03 17:35:30 +00:00
Stefan Siegl
296b9078ff
fix exception back-propagation on PHP7
2015-10-11 14:59:25 +02:00
Stefan Siegl
5cba44ccd0
Merge remote-tracking branch 'origin/master' into php7
...
Conflicts:
README.md
v8js.cc
v8js_class.cc
v8js_exceptions.cc
v8js_object_export.cc
v8js_v8.cc
v8js_v8object_class.cc
2015-10-11 02:09:59 +02:00
Stefan Siegl
b8726409f4
Throw V8JsException if v8 context cannot be created
...
We used to reset This to NULL, which never reallt was supposed to work
and PHP doc explicitly tell to not touch EX(This)
2015-10-03 00:01:12 +02:00
Stefan Siegl
afa52c07bc
Remove hard-coded full pathnames from test
2015-10-02 22:29:27 +02:00
Stefan Siegl
cbbce91ffd
Rename constructor functions to __construct
2015-09-28 22:56:22 +02:00
Stefan Siegl
7d97c97d4c
Fix multi-threading, initialize V8 only once
2015-09-26 18:58:12 +02:00
Stefan Siegl
83f51e5021
Merge pull request #156 from stesie/php-exception-behaviour
...
PHP->JS exception propagation
2015-09-23 19:40:23 +02:00
Stefan Siegl
8934db6dec
Add v8js.compat_php_exceptions INI switch
2015-09-23 19:19:11 +02:00
Stefan Siegl
11155a6a51
PHP7 adapt: changed fatal error messages
2015-08-29 21:21:43 +02:00
Stefan Siegl
49acfc6f22
Adapt ctx_lifetime test to PHP7: changed exception handling
2015-08-29 20:19:22 +02:00
Stefan Siegl
53995ac616
Make FLAG_FORCE_ARRAY not affect V8Function objects, #closes 160
2015-08-26 18:41:38 +02:00