Skip to content

v0.7.0

Compare
Choose a tag to compare
@github-actions github-actions released this 08 Dec 23:52
6e4af34

Full changelog ⇒ v0.7.0

Added

  • Support for calling constructors functions with NewInstance on Function
  • Access "this" from function callback
  • value.SameValue(otherValue) function to compare values for sameness
  • Undefined, Null functions to get these constant values for the isolate
  • Support for calling a method on an object.
  • Support for calling IsExecutionTerminating on isolate to check if execution is still terminating.
  • Support for setting and getting internal fields for template object instances
  • Support for CPU profiling
  • Add V8 build for Apple Silicon
  • Add support for throwing an exception directly via the isolate's ThrowException function.
  • Support for compiling a context-dependent UnboundScript which can be run in any context of the isolate it was compiled in.
  • Support for creating a code cache from an UnboundScript which can be used to create an UnboundScript in other isolates
    to run a pre-compiled script in new contexts.
  • Included compile error location in %+v formatting of JSError
  • Enable i18n support

Changed

  • Removed error return value from NewIsolate which never fails
  • Removed error return value from NewContext which never fails
  • Removed error return value from Context.Isolate() which never fails
  • Removed error return value from NewObjectTemplate and NewFunctionTemplate. Panic if given a nil argument.
  • Function Call accepts receiver as first argument.
  • Removed Windows support until its build issues are addressed.
  • Upgrade to V8 9.6.180.12

Fixed

  • Add some missing error propagation
  • Fix crash from template finalizer releasing V8 data, let it be disposed with the isolate
  • Fix crash by keeping alive the template while its C++ pointer is still being used
  • Fix crash from accessing function template callbacks outside of RunScript, such as in JSONStringify