chakra-core / chakra-core/ChakraCore

Debug protocol is not 100% JSON compliant

Open
#5,262 8 comments 0 reactions 0 assignees View on GitHub
Question
Dominant language
JavaScript
Stars
9.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Don't know whether this is known or not but I figured I'd bring it up in case this was a bug or oversight: I've found that when inspecting values using the debugger API (for example, a result of JsDiagEvaluate), for at least `NaN` and +/- `Infinity`, these values are provided directly as the "value" property of the serialized object. NaN and Infinity are not encodable in JSON and will be coerced to `null` (losing information) if the object is actually converted to JSON.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.