Skip to content

MessageChannel is not defined in encodeInto.any.js #28851

Closed
@AtticusYang

Description

@AtticusYang
  • Version: v13.0.0-pre
  • Platform:Mac
  • Subsystem:

I try to finish the feature Add TextEncoder.prototype.encodeInto , after finish the feature , i test with command
python tools/test.py wpt/test-encoding

I meet the failure as followed

[FAILURE] encodeInto() and a detached output buffer
MessageChannel is not defined
ReferenceError: MessageChannel is not defined
at Test. (node/test/fixtures/wpt/encoding/encodeInto.any.js:142:3)

encodeInto.any.js

142   new MessageChannel().port1.postMessage(buffer, [buffer]);
143   ({ read, written } = new TextEncoder().encodeInto("", view));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions