/* -*- 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/. */
// Testing hook to register a module that wasn't loaded by the module loader. bool registerTestModule(JSContext* cx, HandleObject moduleRequest,
Handle<ModuleObject*> module);
// Testing hook to clear all loaded modules. void clearModules(JSContext* cx);
// The following are used for pinned atoms which do not need rooting.
JSAtom* loadPathStr = nullptr;
JSAtom* pathSeparatorStr = nullptr;
// The slot stored in ImportMetaResolve function. enum { ModulePrivateSlot = 0, SlotCount };
// The number of args in ImportMetaResolve. staticconst uint32_t ImportMetaResolveNumArgs = 1; // The index of the 'specifier' argument in ImportMetaResolve. staticconst uint32_t ImportMetaResolveSpecifierArg = 0;
} JS_HAZ_NON_GC_POINTER;
} // namespace shell
} // namespace js
#endif// shell_ModuleLoader_h
¤ Dauer der Verarbeitung: 0.14 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.