/* 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/. */
BEGIN_TEST(testAtomizedIsNotPinned) { /* Try to pick a string that won't be interned by other tests in this runtime.
*/ staticconstchar someChars[] = "blah blah blah? blah blah blah";
JS::Rooted<JSAtom*> atom(cx,
js::Atomize(cx, someChars, js_strlen(someChars)));
CHECK(!JS_StringHasBeenPinned(cx, atom));
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.