/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- * vim: set ts=8 sts=2 et sw=2 tw=80: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
bool DeadObjectProxy::isExtensible(JSContext* cx, HandleObject proxy, bool* extensible) const { // This is kind of meaningless, but dead-object semantics aside, // [[Extensible]] always being true is consistent with other proxy types.
*extensible = true; returntrue;
}
Value js::DeadProxyTargetValue(JSObject* obj) { // When nuking scripted proxies, isCallable and isConstructor values for // the proxy needs to be preserved. So does background-finalization status.
int32_t flags = 0; if (obj->isCallable()) {
flags |= DeadObjectProxyIsCallable;
} if (obj->isConstructor()) {
flags |= DeadObjectProxyIsConstructor;
} if (obj->isBackgroundFinalized()) {
flags |= DeadObjectProxyIsBackgroundFinalized;
} return Int32Value(flags);
}
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.