/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Assert that if the given object is not null, it's Class is the // SavedFrame::class_ or the given object is a cross-compartment or Xray wrapper // around such an object. // // We allow wrappers here because the JSAPI functions for working with // SavedFrame objects and the SavedFrame accessors themselves handle wrappers // and use the original caller's compartment's principals to determine what // level of data to present. Unwrapping and entering the referent's compartment // would mess that up. See the module level documentation in // `js/src/vm/SavedStacks.h` as well as the comments in `js/src/jsapi.h`. inlinevoid js::AssertObjectIsSavedFrameOrWrapper(JSContext* cx,
HandleObject stack) { if (stack) {
MOZ_RELEASE_ASSERT(stack->canUnwrapAs<SavedFrame>());
}
}
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.