node-chakracore icon indicating copy to clipboard operation
node-chakracore copied to clipboard

test-break-when-eval fails to evaluate expression

Open MSLaguana opened this issue 8 years ago • 1 comments

  • 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}

MSLaguana avatar Aug 15 '17 22:08 MSLaguana

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.

kfarnung avatar Jan 30 '18 01:01 kfarnung