phpv8 / php-v8

PHP extension for V8 JavaScript engine
https://php-v8.readthedocs.io
MIT License
217 stars 14 forks source link

GetOwnPropertyNames and GetPropertyNames should return Strings #96

Closed pinepain closed 6 years ago

pinepain commented 6 years ago

https://github.com/v8/v8/commit/9009d21b9e372f038b1df20085586eb9f43d6d3b#diff-3dd7a0f46b1e5c1cc67921449e7180ac

Most of the users of these api methods manually ensure that the returned values are Strings. With an additional flag we can easily ensure that already in V8 and avoid needless api roundtrips.

Since: 6.6.231