Closed eduxstad closed 3 years ago
It's because node v10 doesn't support the use of the optional chaining operator, introduced in v14. node.js is always being updated, and I just always upgrade to the latest LTS version. verilog.ecn also is on v14.
I'd recommend switching, but if you're not keen on that, you can always just take out the question mark - the 'simulateWith' parameter should always be sent with the user settings anyway, so I guess it's unnecessary.
You may have fixed this already but just a heads up. https://github.com/norandomtechie/ece270-simulator/blob/24d523f82b98f2cc56609bd6b60f04b654cc0831/simulate.js#L469
This question mark in
settings?.
causes a runtime error for me. I'm not sure whether this was intentional or not. It happens again on line 470:https://github.com/norandomtechie/ece270-simulator/blob/24d523f82b98f2cc56609bd6b60f04b654cc0831/simulate.js#L470
Removing both questions marks fixes the error and it seemed to run fine after. My node version is
v10.16.3
and here is the output for reference: