Commit graph

3 commits

Author SHA1 Message Date
Simon Hausmann
5d102bc838 napi: Fix access to diagnostics
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
2023-08-08 13:46:53 +02:00
Simon Hausmann
63df4b78c3 napi: Add tests that verify that lookup of non-existent global callbacks and properties fails 2023-08-08 13:44:12 +02:00
Simon Hausmann
56feda7ad9 napi: Fix typo in file name 2023-08-07 13:30:06 +02:00
Renamed from api/napi/__test__/copiler.spec.ts (Browse further)