Invoking the diagnostics getter would throw an exception because the JsDiagnostic type has no constructor.
There's however no constructor that would allow for the previous
laziness, so instead this PR bites the bullet:
- When diagnostics are requested, we convert them all in one go into proper JavaScript objects.
- The vector returned by line_column is replaced with more idiomatic column and lineNumber properties