FWIW, that particular promise (with no actual enforcement mechanism) predates the JCPOA. Iran has consistently asserted that a nuclear weapon program is fundamentally un-Islamic and something they won't do. There's reason to doubt the good faith of that claim, but they've always made it.