/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththisfile,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
if (details.files) { if (details.args) { thrownew ExtensionError( "'args' may not be used with file injections."
);
}
} // `files` and `func` are mutually exclusive but that is checked in // the parent (in `execute()`). if (func) { try { const serializedArgs = args
? JSON.stringify(args).slice(1, -1)
: ""; // This is a prop that we compute here and pass to the parent.
parentDetails.func = `(${func.toString()})(${serializedArgs});`;
} catch (e) { thrownew ExtensionError("Unserializable arguments.");
}
} else {
parentDetails.func = null;
}
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.