0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-10 06:08:40 +00:00
Commit Graph

914 Commits

Author SHA1 Message Date
Stefan Siegl
8e3e0c91b5 Add ZEND_ARG_INFO for V8Js::__construct 5th arg: snapshot_blob 2016-03-05 17:12:36 +01:00
Stefan Siegl
d0e78019aa Allow snapshot creation & use with V8 > 4.3.7
This does *not* seem to depend on whether V8 itself was compiled
with support for snapshots or not.

Therefore use PHP_V8_USE_EXTERNAL_STARTUP_DATA only to mark
whether we need to provide external snapshot data to V8.
2016-03-05 17:12:36 +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
a1cdd7537b Fix conditional compilation for snapshot=off 2016-02-28 20:29:53 +01:00
Stefan Siegl
93d3f9591f Add CreateParams fields in v8js_ctx only if needed 2016-02-28 20:17:56 +01:00
Stefan Siegl
40f0f5e89f Provide startup data loader for V8 < 4.6.76 2016-02-28 20:17:20 +01:00
Stefan Siegl
52ebdc28ed Simply v8::Isolate::New to test if snapshot blob needed
The test on internal symbols seems too fragile, e.g. with V8
version 4.5.90 it is false positive.
2016-02-28 19:52:46 +01:00
Stefan Siegl
2c8ef2aa66 conditionally compile in snapshot functionality 2016-02-28 17:54:00 +01:00
Stefan Siegl
39062b4248 Test for snapshot support in V8
Looks like we have to test for internal functions unfortunately
since the public V8 snapshot API is available no matter whether
the library really supports it or not.
2016-02-28 17:48:44 +01:00
Stefan Siegl
b405a34690 Allow to create snapshots and re-use them 2016-02-28 17:00:47 +01:00
Stefan Siegl
82ffaa2c35 Merge pull request #202 from stesie/issue-183
Export public methods on derived classes to V8
2016-01-10 16:13:58 +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
b4b6a8a1a3 Merge pull request #201 from stesie/generator-php-to-v8
Generator object passing from PHP to JS
2016-01-09 14:47:40 +01:00
Stefan Siegl
e2636b2e71 Skip Generator export tests if not supported 2016-01-09 14:24:49 +01:00
Stefan Siegl
89399fa961 Disable generator export for V8 < 3.30 (not supported) 2016-01-09 14:17:48 +01:00
Stefan Siegl
80575beecc Don't create v8::HandleScope in v8js_wrap_generator 2016-01-09 14:05:19 +01:00
Stefan Siegl
53b8ac759f Merge pull request #200 from stesie/generator-passing
Generator passing from JavaScript to PHP
2016-01-09 13:20:58 +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
3508f0c8e7 export public methods of classes derived from \V8Js, closes #183 2016-01-08 15:42:43 +01:00
Stefan Siegl
1dfddbe060 Bump version to 1.1.0 2016-01-08 09:01:34 +01:00
Stefan Siegl
701f473ba9 Merge remote-tracking branch 'origin/master' into php7
Conflicts:
	package.xml
	php_v8js_macros.h
2016-01-08 08:46:30 +01:00
Stefan Siegl
bd442beffd Bump version to 0.4.1 2016-01-08 08:25:53 +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
10d0cc6e37 Update for PHP7/VC14 2016-01-07 11:42:24 +01:00
Stefan Siegl
df3bc6b714 elaborate on pre-built binaries 2016-01-07 11:32:48 +01:00
Stefan Siegl
fdd3c4bc64 Merge pull request #199 from stesie/appveyor-nts
appveyor: build x86-nts as well
2016-01-06 22:59:07 +01:00
Stefan Siegl
b2b5e78f4f appveyor: build x86-nts as well 2016-01-06 22:44:19 +01:00
Stefan Siegl
80e23793d9 Add AppVeyor build badge 2016-01-06 19:37:31 +01:00
Stefan Siegl
66841e8fb6 Merge pull request #198 from stesie/slow-down-time-limit-tests
Make set_time_limit tests slower
2016-01-06 17:43:45 +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
44c3ce7ffd Merge pull request #197 from phpv8/skip-win
skip extensions_error.phpt on Windows
2016-01-06 16:53:55 +01:00