// Having a last = Error().lineNumber forces a setline srcnote, so test a // function that ends with newline srcnotes.
g.eval("/* Any copyright is dedicated to the Public Domain.\n" + " http://creativecommons.org/publicdomain/zero/1.0/ */\n" + "\n" + "function secondCall() { first = Error().lineNumber;\n" + " debugger;\n" + " // Comment\n" + " eval(\"42;\");\n" + " function foo() {}\n" + " if (true) {\n" + " foo();\n" + // The "missing" newline here is a trick to make a newline // source note come at the end. A real newline between the two // closing braces causes a setline note instead. " } }");
test(g.secondCall, 8);
Messung V0.5
¤ Dauer der Verarbeitung: 0.0 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 und die Messung sind noch experimentell.