Eww, this is too bad :-(
Should we attempt to fix `JS_GetLinePC` instead of adding all this special code to handle it in here?