Bug 130029
| Summary: | Please add a way to work with JSON that doesn't depend on JavaScript | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> |
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bfulgham, ggaren, oliver |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Alexey Proskuryakov
WebCrypto uses JSON as a key serialization format in a way that's not really tied to JavaScript. I had to store an ExecState pointer to perform the work, but that's somewhat ugly and unsafe.
It would help a lot if there was a way to work with JSON as a pure data container, I'm imagining something like a DOM SAX interface for parsing.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Geoffrey Garen
Better to store a VM* or JSGlobalObject* than an ExecState*. ExecState* has no lifetime guarantee.