Wow, it is shocking to me that `substr` was depreciated. Searching for it, the function was not part of the standard in the first place.
Edit/correction: Core JS 1.2 was Netscape Communicator 4.0, which was in beta in 1996 and launched in June 1997! (The 4.0x series was still pre-ECMA, as opposed to the 4.x series.)