NEW 130029
Please add a way to work with JSON that doesn't depend on JavaScript
https://bugs.webkit.org/show_bug.cgi?id=130029
Summary Please add a way to work with JSON that doesn't depend on JavaScript
Alexey Proskuryakov
Reported 2014-03-10 11:36:24 PDT
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
Geoffrey Garen
Comment 1 2014-03-10 13:42:44 PDT
Better to store a VM* or JSGlobalObject* than an ExecState*. ExecState* has no lifetime guarantee.
Note You need to log in before you can comment on or make changes to this bug.