mbostock/d3 — comment on commit 7895afbda5d60eefa56c1851561b6a5c90175a21
File: d3.js line 2278
By jmarca:

I ran into a problem due to this change. If extent[0] is, say, -3, and extent[1] is 0, then

pow(extent[1]) = 0.41847821985656414
pow(extent[0]) = 0.008866483422679226

so u=0 and v=0.

Then lower down,

for (i = 0; ticks[i] < u; i++) {} // strip small values
for (j = ticks.length; ticks[j - 1] > v; j--) {} // strip big values
ticks = ticks.slice(i, j);

will make i=0 and j=0, and therefore the slice will strip all ticks from output.