let popHits = 0;
dbg.onEnterFrame = frame => {
frame.onPop = completion => {
popHits++; // Resumption values ignore any 'stack' property, and the script location of // the place where the hook was called will be used when throwing. if (popHits <= 2) {
assertEq(completion.stack.functionDisplayName, "baz");
} else {
assertEq(completion.stack.functionDisplayName, "bar");
}
};
};
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.