The following code is straightforward and takes a couple of whacks at seeing if isWhitespace() thinks the newline is truly white space.
- buf = '\n';*
The newline character is whitespace according to the isWhitespace() docs. But the above code produces zero values for isWhitespace()'s result!!!
So, um, it seems to me isWhitespace() doesn't work as advertised. What might I be missing?