const environment = await packet.frame.getEnvironment(); Assert.equal(environment.type, "function"); Assert.equal( // The original bug is only reproducible in the test when cloning the result, since // threadFrontTest uses a direct transport that gets us the object returned from // the actor. // eslint-disable-next-line no-proto
structuredClone(environment).bindings.arguments[0].__proto__.value, "bar"
);
const environment = await packet.frame.getEnvironment(); Assert.equal( // The original bug is only reproducible in the test when cloning the result, since // threadFrontTest uses a direct transport that gets us the object returned from // the actor. // eslint-disable-next-line no-proto
structuredClone(environment).bindings.variables.__proto__.value, "foo"
);
await threadFront.resume();
})
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.