0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-15 05:08:41 +00:00
Commit Graph

610 Commits

Author SHA1 Message Date
Stefan Siegl
683ac347c7 Test export of undeclared properties in derived classes 2013-10-19 02:36:19 +02:00
Stefan Siegl
c77cdf4b6f Export initially initialized public properties to V8
Before a property was exported to V8 if it was assigned a value
during normal code execution.  However if the value was assigned
(hard coded) on class level it wasn't exported.
2013-10-19 02:36:19 +02:00
Stefan Siegl
257233be51 Make php_v8js_write_property export only public properties
Before a property would have been exported, even if a derived
class declared it either private or protected.
2013-10-19 02:22:13 +02:00
Stefan Siegl
b888cfce0d Add test on protected & private properties on derived classes 2013-10-19 02:17:10 +02:00
Stefan Siegl
1f8b605585 Add test on initially initialized properties on V8Js object. 2013-10-19 02:15:37 +02:00
Stefan Siegl
645b0df999 Add test from issue #54 2013-10-18 23:57:26 +02:00
Patrick Reilly
40d9e3e4f2 Merge pull request #55 from stesie/call-object_properties_init
Call object_properties_init on newly created V8Js object.
2013-10-18 04:44:10 -07:00
Stefan Siegl
d6a4a3c960 Call object_properties_init on newly created V8Js object. 2013-10-17 23:32:16 +02:00
Anatol Belski
c0290d4a17 fix version macros name 2013-10-15 17:42:02 +02:00
Patrick Reilly
17381525f1 Merge pull request #53 from stesie/v8-debug
Add V8 debugging support
2013-10-13 12:28:58 -07:00
Stefan Siegl
3f049d3b91 Unlock isolate on JS->PHP transition. 2013-10-13 11:36:57 +02:00
Stefan Siegl
d69f2be50a Add v8 debug support 2013-10-13 11:36:57 +02:00
Patrick Reilly
ab35dcc96b Merge pull request #52 from cscott/travis
Support g++-4.6 and travis CI server.
2013-10-13 00:26:31 -07:00
Patrick Reilly
b021bbefab Merge pull request #51 from cscott/typesafe-func
Make JavaScript function wrappers typesafe.
2013-10-13 00:26:08 -07:00
C. Scott Ananian
d75fc4a142 Hookup Travis continous integration test server. 2013-10-12 01:19:14 -04:00
C. Scott Ananian
d416d9b59b Support g++-4.6 in configuration script.
gcc 4.6 doesn't have the -std=c++11 option, it uses the not-yet-finalized
-std=c++0x option.  Use whichever is found to be appropriate at configure
time.
2013-10-12 01:19:14 -04:00
C. Scott Ananian
f85675f169 Make JavaScript function wrappers typesafe.
Use the v8::Signature parameter to FunctionTemplate::New to guarantee that
the info->Holder() is of the proper type when `php_v8js_php_callback` is
invoked.

Add test case demonstrating the segfault (which is now prevented).
2013-10-11 23:28:21 -04:00
Patrick Reilly
0319b74250 Merge pull request #50 from stesie/fix-test-for-php53
Make test PHP 5.3 compatible
2013-10-07 09:05:42 -07:00
Stefan Siegl
4f3cbd412b Make test PHP 5.3 compatible 2013-10-07 14:55:01 +02:00
Patrick Reilly
8862498a10 Merge pull request #48 from cscott/has_prop
Implement property_exists()/isset()/empty() on wrapped JavaScript object
2013-10-05 12:10:17 -07:00
Patrick Reilly
0855065e5a Merge pull request #49 from stesie/ci-badge
Build status badge for README
2013-10-05 12:08:29 -07:00
Stefan Siegl
6ab41f21a1 Add CI badge and link to Jenkins job list 2013-10-05 20:11:35 +02:00
C. Scott Ananian
035e6faa8b Implement property_exists()/isset()/empty() on wrapped JavaScript objects.
Fixes issue #32.
2013-10-05 11:56:42 -04:00
Patrick Reilly
ba3fe2e27a Merge pull request #46 from cscott/more-build-tweaks
Ensure all v8 libraries are copied in README; sanity check in config.m4.
2013-10-03 15:09:15 -07:00
Patrick Reilly
09f5fd2ede Merge pull request #47 from stesie/fix-copy-trait-inline
Fix CopyablePersistentTraits for v8 3.21.15 .. 3.21.18.x
2013-10-03 15:08:42 -07:00
Stefan Siegl
988691d2dc Fix CopyablePersistentTraits for v8 3.21.15 .. 3.21.18.x 2013-10-04 00:05:11 +02:00
C. Scott Ananian
91393faca3 Ensure all v8 libraries are copied in README; sanity check in config.m4.
The latest versions of v8 build libicu as well.  If this isn't copied to
the lib directory, then the v8 version check fails (with a link error).
Ensure that this is caught at configuration time.
2013-10-03 17:59:27 -04:00
Patrick Reilly
19f30f5b1c Merge pull request #44 from cscott/g++-update
Add a bit of documentation about g++ 4.8.
2013-10-03 14:11:30 -07:00
C. Scott Ananian
8904288b33 Add a bit of documentation about g++ 4.8. 2013-10-03 17:08:37 -04:00
Patrick Reilly
d0f5fafbd9 Merge pull request #43 from stesie/wip-ftbfs-v8-3.22
Adopt V8 API changes (up to 3.22.6)
2013-10-03 10:58:58 -07:00
Stefan Siegl
12e5e01920 Remove Locker from timer thread 2013-10-03 16:57:18 +02:00
Stefan Siegl
386465570d Use v8's CopyablePersistentTraits for v8 >= 3.22.0 2013-10-03 16:27:41 +02:00
Stefan Siegl
619231913c Adapt to new v8::Persistent API, support V8 >= 3.21.12 2013-10-03 16:27:04 +02:00
Patrick Reilly
1c4d9817dc Merge pull request #39 from stesie/fix-property-read
Create temporary HandleScopes when reading properties
2013-10-02 16:32:27 -07:00
Stefan Siegl
f90650d630 Create temporary HandleScope to get & call methods likewise, closes #33 2013-10-03 01:15:51 +02:00
Stefan Siegl
1f4caaeead Create temporary HandleScope while reading properties 2013-10-03 01:05:03 +02:00
Patrick Reilly
ab5fe1d4b6 Merge pull request #38 from stesie/fix-function-passback
Fix php_v8js_hash_to_jsobj for v8 functions
2013-10-02 15:50:00 -07:00
Stefan Siegl
662e491e1f Pass back v8 functions, don't re-wrap 2013-10-03 00:34:50 +02:00
Patrick Reilly
7f147478e1 Merge pull request #37 from stesie/fix-multi-object-inst
Use v8::Isolate as part of the key to the template cache
2013-10-02 14:57:14 -07:00
Stefan Siegl
bc82d13658 Add isolate to key of template cache. 2013-10-02 23:38:26 +02:00
Patrick Reilly
1f3fbae058 Merge pull request #36 from cscott/more-fixes
The json extension is not needed for PHP 5.4.
2013-10-02 14:17:33 -07:00
C. Scott Ananian
8e0e573d3f The json extension is not needed for PHP 5.4. 2013-10-02 17:12:35 -04:00
Patrick Reilly
c4d155351d Merge pull request #35 from cscott/fixes
Makefile fixes.
2013-10-01 15:13:00 -07:00
C. Scott Ananian
1f2eefdbea Support compiling v8js with v8 in a custom path.
If you don't want to overwrite the system copy of v8 in /usr/lib/libv8.so,
you can use the --with-v8=<path> option to have php-v8js use its own
copy of libv8.
2013-10-01 18:05:36 -04:00
C. Scott Ananian
20d038fae5 Ensure that json extension is enabled when running tests.
The `commonjs_modules.phpt` test requires `json_encode` in order to
complete successfully.
2013-10-01 17:58:24 -04:00
Patrick Reilly
f73caf0a08 fix package 2013-09-29 20:51:41 -07:00
Patrick Reilly
622ea1e2f6 fix dirs 2013-09-29 20:41:14 -07:00
Patrick Reilly
585365a9e5 Merge branch 'master' of github.com:preillyme/v8js 2013-09-29 20:33:21 -07:00
Patrick Reilly
221b3dd70a add more files to config 2013-09-29 20:33:04 -07:00
Patrick Reilly
d40fbb3ed1 Merge pull request #31 from stesie/test-multi-v8js-inst
V8Js fails if multiple instances are created using object-passing
2013-09-29 20:03:50 -07:00