minimal work to make tests pass in v8