function check_wrapped_primitive_grip(grip, data) {
strictEqual(grip.class, data.class, "The grip has the proper class.");
if (!grip.preview) { // In a worker thread Cu does not exist, the objects are considered unsafe and // can't be unwrapped, so there is no preview. return;
}
const value = grip.preview.wrappedValue; if (data.class === "Symbol") {
strictEqual(
value.type, "symbol", "The wrapped value grip has symbol type."
);
strictEqual(
value.name,
data.name, "The wrapped value grip has the proper name."
);
} else {
strictEqual(value, data.value, "The wrapped value is the primitive one.");
}
}
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
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 ist noch experimentell.