Gasoline must be atomized by a carburetor or fuel injector, then ignited with a spark. Diesel is atomized by a high-pressure pump & injector, then ignited through compression.
Diesel and gasoline are two fuels with intentionally different design characteristics. Diesel is measured with the Cetane index and gasoline with the Octane index. If a fuel performs well on one index, it usually performs very badly on the other. A good diesel fuel will be easy to ignite and will have a short ignition delay period because you want the fuel to ignite almost instantaneously. A good gasoline will be defined just the opposite: the more compression the fuel can withstand before detonating, the better it is (hence, difficult to burn).
There may be some way by which this reported operation could work, but what would be the motivation to do this?
Bob B.