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

266 Commits

Author SHA1 Message Date
Christiano Becker
9cb0400f90 Added tests/tojson_001.phpt 2023-02-21 09:02:39 -03:00
Christiano Becker
35b5bff977 * Added test tests/php_exceptions_007.phpt 2023-02-20 14:59:41 -03:00
Christiano Becker
fab7a68717 PHP 8.2 compatibility
* tests/array_access_002.phpt - added #[AllowDynamicProperties] to the class MyArray
* tests/js-construct-protected-ctor.phpt - some change on how pph8.2 Exepctions references the line that caused the exception, when some call have multiple lines (eg: the executeString in this test), now references the line where the command started (first line) instead of the last line.
* V8Js Object Export: added to not enumerate magic methods __serialize and __unserialize - this two methods was added to DateTime objects and was causing tests/var_dump.phpt failing.
2023-02-20 08:09:13 -03:00
Christiano Becker
f24a8af0f5 * tests/timezones.phpt - added LC_ALL=C to prevent test failing when another locale is set as default 2023-02-20 07:13:41 -03:00
Stefan Siegl
eb61c4ddcf
Merge pull request #506 from redbullmarky/php8
Segfault fix when using empty()
2023-02-19 18:58:14 +01:00
Mark Grainger
79a46804dc empty() test 2023-02-18 15:12:29 +00:00
Christiano Becker
83431fbd52 * Added AllowDynamicPropertis on V8Js, V8Object and V8Function
* Added #[AllowDynamicProperties] on test classes that uses Dynamic Properties
2023-02-18 10:18:36 -03:00
Stefan Siegl
8aa6bc2357 Merge branch 'php8-exit_segfault' of https://github.com/chrisbckr/v8js into php8
Conflicts:
	v8js_object_export.cc
2023-02-03 19:31:07 +01:00
Stefan Siegl
7887ec6475 Merge branch 'php7' into php8 2023-02-03 19:25:54 +01:00
Christiano Becker
5a10dec698 When FLAG_PROPAGATE_PHP_EXCEPTIONS is set, check for unwind or graceful exit before propagate 2023-01-16 17:35:07 -03:00
Stefan Siegl
bf51bf52a9 document (re-)throwing behaviour from exception filter 2022-06-24 13:15:40 +02:00
Stefan Siegl
b635a16789 add test on uninstallation of exception filter 2022-06-24 12:55:08 +02:00
Stefan Siegl
4bfe2ef3ce rename to setExceptionFilter 2022-06-24 12:04:11 +02:00
Stefan Siegl
ca38f724c8 handle exceptions thrown in proxy factory 2022-06-01 08:04:41 +02:00
Stefan Siegl
7422ef2383 run exceptions thrown in require() through proxy factory as well 2022-06-01 08:04:41 +02:00
Stefan Siegl
456814703c add Throwable to string conversion testcase 2022-06-01 08:04:41 +02:00
Stefan Siegl
ac2b1cb238 introduce setExceptionProxyFactory 2022-06-01 08:04:41 +02:00
Stefan Siegl
bfd2bfc2df remove deprected V8Js::checkString function 2022-05-31 09:57:52 +02:00
Stefan Siegl
f6a93c3cd6 Remove support for uncaught exceptions. Use try/catch. 2022-05-31 09:53:09 +02:00
Stefan Siegl
fa4babb307 Remove support for V8 extensions 2022-05-31 09:35:09 +02:00
Stefan Siegl
2b3e904dab Merge branch 'php7' into php8 2022-05-31 09:12:49 +02:00
Mark Grainger
51d34e0acd Fix for V8 timezone notification 2022-05-30 20:24:55 +00:00
Stefan Siegl
748310c894 Merge branch 'php7' of https://github.com/phpv8/v8js into php8 2022-05-30 14:29:37 +02:00
Stefan Siegl
10cd73a03d eliminate PHP_VERSION_ID checks for < 80000 etc 2022-05-30 14:11:28 +02:00
Stefan Siegl
3257a86bef hold extra reference on v8 instance as long as we call into V8, closes #472 2022-05-29 21:48:47 +02:00
Albert
cb7b3dcc29 Optimize and fix test reference from @redbullmarky 2022-05-27 10:47:44 +08:00
Albert
1db8f8de5e Support PHP8.1+ 2022-05-23 15:41:57 +08:00
Albert
3d64f08536 optimize redundancy code and fix some unit test 2021-08-20 20:08:45 +08:00
Stefan Siegl
403435d0c0
relax expectations on V8 toString conversions (broken by V8 8.4), refs #444 2020-08-21 10:10:56 +02:00
Stefan Siegl
fcd78f830a
use EXPECTREGEX to handle different PHP version's output well 2019-06-23 19:09:12 +02:00
Stefan Siegl
5f7bf9900b
add test, refs #410 2019-06-22 18:59:41 +02:00
Stefan Siegl
a67253477b
disable timezones.phpt test, currently known broken, refs #378 2018-11-06 12:02:25 +01:00
Stefan Siegl
90b6b31f06
break recursion immediately on PHP <= 7.2 as well 2018-07-13 15:52:41 +02:00
Stefan Siegl
42e907c31e
Merge pull request #365 from Jan-E/appveyor_3_tests
Appveyor enable 3 extra tests
2018-07-13 14:30:17 +02:00
Jan-E
61f98e2a4a extensions_error.phpt runs fine on Windows 2018-07-07 05:18:31 +02:00
Jan-E
c87ddb8ebf Fix tests for added method DateTime::createFromImmutable() 2018-07-05 11:45:03 +02:00
Stefan Siegl
48a763d6db
pass module_base directly via FunctionTemplate, closes #349 2018-02-01 19:39:26 +01:00
Stefan Siegl
7663fb6888
support native modules 2018-01-05 21:44:40 +01:00
Stefan Siegl
f1e2c36a0a
Merge remote-tracking branch 'stesie/remove-compat-exceptions' into php7 2017-11-26 12:27:02 +01:00
Stefan Siegl
b12a2fb4e3
Merge remote-tracking branch 'stesie/require-exception-handling' into php7 2017-11-26 12:24:46 +01:00
Stefan Siegl
278b4fbedb
Merge remote-tracking branch 'remotes/stesie/global-object' into php7 2017-11-26 12:21:50 +01:00
Stefan Siegl
302bf1d0ff
remove v8js.compat_php_exceptions 2017-11-26 11:48:52 +01:00
Stefan Siegl
6a2f53a9f1
test "delete module.exports" 2017-11-12 16:27:50 +01:00
Stefan Siegl
1c7e355937
allow modules to return arbitrary values 2017-11-12 16:26:18 +01:00
Stefan Siegl
384ec9b1b6
use "this = module.exports" for modules 2017-11-12 16:20:24 +01:00
Stefan Siegl
f3a46ff833
re-use global context for modules + provide module.exports 2017-11-12 16:14:32 +01:00
Stefan Siegl
c20c19c126
add test so that 'this === global' 2017-11-12 15:28:44 +01:00
Stefan Siegl
e4ab07de03
Add Node.js-style "global" to global scope 2017-11-12 15:26:34 +01:00
Stefan Siegl
4e687c3950 Merge pull request #332 from stesie/unicode-test
Unicode test
2017-09-25 17:35:57 +02:00
Stefan Siegl
3afd98ba3a Merge pull request #331 from stesie/mark-pending-exceptions-deprecated
Mark pending exceptions deprecated
2017-09-25 15:08:33 +02:00