Fix the location dart2js functionName detection.