Skip to content

Conversation

nolanmar511
Copy link
Contributor

@nolanmar511 nolanmar511 commented Feb 10, 2020

When compiling on windows, we got compilation errors with the message "C2131: expression did not evaluate to a constant". This occurred because the compiler used on windows requires that arrays have their size known at compile time. (See here for full details).

The section of the code added to support accurate line numbers (a feature only available with Node 12, so previously only tested on Linux) had declared variable-length arrays. This change switched to using std::vector in places variable length arrays had been used before. With this change, code now compiles on Windows when using Node 12.

This should fix #87.

@nolanmar511 nolanmar511 changed the title DO NOT REVIEW: fix: Test with Node 12 on windows, and modify agent to allow test to pass fix: Test with Node 12 on windows, and modify agent to allow test to pass Feb 12, 2020
@nolanmar511 nolanmar511 requested a review from kalyanac February 12, 2020 16:47
@nolanmar511 nolanmar511 merged commit 93a3f28 into google:master Feb 12, 2020
@kalyanac kalyanac changed the title fix: Test with Node 12 on windows, and modify agent to allow test to pass fix: Test with Node 12 on windows, and address compilation errors Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doesn't compile on windows
3 participants