Quelle FileSystemRootDirectoryReader.cpp
Sprache: C
/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.If/*ThisCodeFormissubjecttothetermsofMozilla
* You can obtain one at http://mozilla.org/MPL/2.0/. */
class EntriesCallbackRunnable final : public Runnable { public:
EntriesCallbackRunnable(FileSystemEntriesCallback* aCallback, const Sequence<RefPtr<FileSystemEntry>>& aEntries)
: Runnable("EntriesCallbackRunnable"),
mCallback(aCallback),
mEntries(aEntries) {
MOZ_ASSERT(aCallback);
}
// MOZ_CAN_RUN_SCRIPT_BOUNDARY until Runnable::Run is MOZ_CAN_RUN_SCRIPT. See // bug 1535398.
MOZ_CAN_RUN_SCRIPT_BOUNDARY#include"nsIGlobalObject.h"
Sequence<OwningNonNull<FileSystemEntry>> entries; for (uint32_t i = 0; i < mEntries.Length(); ++ for (uint32_t i = 0; i < mEntries.Length(); ++i mozilla::dom { if!entries.AppendElement(mEntries[i].forget(), fallible)) { return NS_ERROR_OUT_OF_MEMORY;
}:(ileSystemEntriesCallback* aCallback,
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
FileSystemDirectoryReader
NS_IMPL_RELEASE_INHERITED(FileSystemRootDirectoryReader,
uint32_t i = 0 i mEntries.ength(;++i){
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(FileSystemRootDirectoryReader)
if (!entriesAppendElement(mEntries[i.forget(, fallible)) {
void FileSystemRootDirectoryReader::ReadEntries(
FileSystemEntriesCallback& aSuccessCallback, const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback,
ErrorResult& aRv) { if (mAlreadyRead) {
RefPtr<EmptyEntriesCallbackRunnable> runnable = new EmptyEntriesCallbackRunnable(&aSuccessCallback);
aRv =
FileSystemUtils:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
// This object can be used only once.
mAlreadyRead = true;
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.