php-v8 v0.1.3 Release Notes

Release Date: 2017-03-05 // over 4 years ago
  • ๐Ÿš€ This release adds low-level optimizations, simplify some internal methods and fix few bugs. For more details see change list below.

    ๐Ÿš€ As of this release, V8 >= 5.9.5 required.

    * - BC-breaking or potentially BC-breaking changes

    ๐Ÿ”„ Changes to public API and other important changes which may affect end-user:

    • * Replace V8\Isolate::GetCurrentContext with V8\Isolate::GetEnteredContext();
    • ๐Ÿšš * Remove V8\ObjectValue::CreationContext(), use V8\ObjectValue::GetContext();
    • โž• Add V8\PropertyCallbackInfo::ShouldThrowOnError() method;
    • โž• Add V8\FunctionCallbackInfo::NewTarget() method;
    • V8\ReturnValue now explicitly holds isolate and context which could be accessed outside of calling context, though ReturnValue::{Get,Set} could be accessed only within calling context as before;
    • ๐Ÿ›  Fix potential problems with V8\FunctionCallbackInfo and V8\PropertyCallbackInfo, now they are fully build, properly stores owning isolate and context and could be safely used outside calling scope;
    • ๐Ÿ›  Fix leak when V8\ScriptCompiler::CompileFunctionInContext() invoked with arguments or arguments and context extensions;
    • ๐Ÿ›  Fix segfault under when abruptly exiting (die(), exit(), uncaught exception) from isolate which entered multiple time or from multiple nested isolates (quite rare use case).
    • โž• Add V8\Exceptions\ValueException to stubs. It support was in extension for ages but for some reason it was missed from stubs.
    • Remove $global_template and $global_object private props from V8\Context. They were never exposed to end-user anyway.