The 2nd amendment was passed in 1789 granting the right to bear arms. What sorts of laws existed in the rest of the world at that time?
A correction, if you don't mind. The 2nd Amendment did not grant the right to bear arms; it recognized a very ancient right inherited from the English: that of freemen to possess and use firearms weapons, especially for militia service. This right was first codified in the English constitution of 1689, but it predates it by a millennium or so.
I don't think it's been mentioned, but in 17th/18th/early 19th-century Rome the authorities, due to the ever-present threat of violence, forbade the populace from carrying the so-called saracche (swords), knives, punteroli (stilettoes) and obviously guns although these weren't as widespread. ^1 Indeed, the city had a problem with microcriminality - being robbed after dark was not at all uncommon, youngsters from different wards of the city generally liked to engage in frequent clashes among them (Trastevere hated Monti, Monti hated Trastevere with a passion, etc) and this is why they carried slingshots or wooden batons in defiance of the regulations; brawls took place so often in the hosterie (pubs) that Pope Leo XII had mandated the proprietors to install a gate so that their venues could be 'isolated', and that customers only buy wine without drinking it in the premises. ^2
This said... many just ignored the laws, old and new, and the so-called bulli - a curious figure once typical of Rome, that is, youngsters who became famous/respected in their ward after a good deal of battaglie a rocci (stone fights taking place against rival bands in the Roman Forum... often using pieces of it as a weapon!) and duels during which they had vanquished their opponent - were notorious for their love of knives, so much that they had to be banned. But this didn't obviously deter them from carrying on their honour-based lifestytle.
^1 Bartolomeo Rossetti et al., I Bulli di Roma (Newton Compton Editori, Roma 1979).
^2 ibid.
Some discussion here.