Skip to content

The "serialize as a remote value" may need to be fallible #328

Open
@jugglinmike

Description

@jugglinmike

Based on the use of "serialize as a remote value" in the script.evaluate command, it appears that the serialization algorithm has to anticipate abrupt completions. At the moment, however, it is defined as an infallible operation.

For instance, the following script produces a value which presents as a RegExp but whose "flags" property is "poisoned":

Object.defineProperty(/./, 'flags', { get() { throw 0; } });

As currently written, "serialize as a remote value" does not account for this possibility, and it uses the completion record returned by ECMAScript's Get instead of the completion record's [[Value]] field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingremote valueSerialization and Deserialization of Remote Values

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions