0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-09-20 01:55:18 +00:00
Commit Graph

19 Commits

Author SHA1 Message Date
Stefan Siegl
14600d3be3 Initialize v8 platform as needed
See http://comments.gmane.org/gmane.comp.lang.javascript.v8.general/8029
for more information.
2014-09-17 00:45:24 +02:00
Stefan Siegl
985307dc91 Update README, removed build badge, require V8 3.22.3
GitHub now caches the build badge image if it is served via HTTP.
However the Jenkins box has no SSL certificate, hence I had to remove
the badge.
2013-12-21 20:54:55 +01:00
C. Scott Ananian
f6a6d1e4b5 Rework JavaScript wrapper for PHP objects.
Use the NamedPropertyHandler feature of v8 to wrap accesses to PHP properties
and methods from JavaScript.  This enables us to support property
set/delete/query.

The `in` and `delete` operators in JavaScript work like the `isset()` and
`unset()` functions in PHP.  In particular, a PHP property with a null
value will not be `in` the JavaScript object. (This holds when enumerating
all properties of an object as well.)

Because JavaScript has a single namespace for both properties and methods,
we allow the use of the `__call` method on a PHP object (even if the
PHP class does not natively define the `__call` magic function) in order
to unambiguously invoke a method.  Similarly, you can prefix a property
name with `$` to unambiguously access the property. (When enumerating all
properties, properties are `$`-prefixed in order to ensure they are not
conflated with method names.)
2013-10-25 16:47:15 -04:00
Stefan Siegl
d69f2be50a Add v8 debug support 2013-10-13 11:36:57 +02:00
Stefan Siegl
6ab41f21a1 Add CI badge and link to Jenkins job list 2013-10-05 20:11:35 +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
C. Scott Ananian
8904288b33 Add a bit of documentation about g++ 4.8. 2013-10-03 17:08:37 -04:00
Stefan Siegl
619231913c Adapt to new v8::Persistent API, support V8 >= 3.21.12 2013-10-03 16:27:04 +02: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
e508410a79 Ensure libv8 is >= 3.17.11 (fixes issue #12). 2013-09-28 02:48:59 -04:00
andrewtch
f8203e1a73 Update README.md
Updated readme to fix #19
2013-07-07 23:29:05 +03: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
7e90439cdf Make sure all tests and samples use the new exception class name V8JsScriptException. 2013-04-14 00:36:31 +01:00
Drak
730b782de1 Fixed formatting of markdown. 2012-07-24 14:03:32 +02:00
Patrick Reilly
9175152a38 Update documentation 2012-04-27 16:47:52 +00:00
preilly
b107e7afc8 Updated README 2012-04-27 16:28:54 +00:00
Patrick Reilly
1fcedd8b09 initial commit 2012-04-27 09:09:49 -07:00