Skip to content

v0.2.0

Latest

Choose a tag to compare

@hajimehoshi hajimehoshi released this 27 Nov 15:38
· 1 commit to main since this release
  • Breaking: Pass a context.Context as the first argument to Value.Get, Set, Delete, their WithValueKey variants, Index, SetIndex, and InstanceOf. Cancellation covers JavaScript invoked by the operation and any promise jobs it runs before returning.
  • Breaking: On both VM and Realm, NewSyntheticModule now takes a map[string]ekuma.Value and supports named exports. Replace NewSyntheticModule(name, value) with NewDefaultExportSyntheticModule(name, value) to keep a single default export.
  • Parse a JavaScript module once with ParseUnboundModule, then use BindModule to reuse it across VMs or realms.
  • Reduced memory use for plain objects and constant array literals, and sped up repeated string appends, short-string joins, and array truncation.