node-chakracore
node-chakracore copied to clipboard
test-break-when-eval fails to evaluate expression
- Version: master
- Platform: all
- Subsystem: inspector
The test-break-when-eval test is failing with a timeout because the test attempts to evaluate an expression while the JS engine is not stopped:
[sent] {"method":"Runtime.evaluate","params":{"expression":"sum()","objectGroup":"console","includeCommandLineAPI":true,"silent":false,"contextId":1,"returnByValue":false,"generatePreview":true,"userGesture":true,"awaitPromise":false},"id":6}
[{"scriptId":"42","lineNumber":9,"columnNumber":2}]}}
[received] {"error":{"code":-32000,"message":"Failed to evaluate expression"},"id":6}
This is a known limitation of our implementation, the issue is that the evaluate expression is being issued while there is no script executing. We'll need to investigate workarounds which may include some changes in ChakraCore.