Test case showing v8 producing invalid optimized code