apply @anba's patch for strict