//# allFunctionsCalledOnLoadMagic comments / notebook
Magic comments
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
//# allFunctionsCalledOnLoad
function init() {
console.log("init");
}
init();//# sourceURL=<url>eval(
'console.log("Hello"); throw new Error("error");\n//# sourceURL=generated-code.js',
);//# sourceMappingURL=<url>function createPoint(x, y) {
return { x, y };
}
const point = /*#__PURE__*/ createPoint(1, 2);// -- Compiler output --
function createPoint(x, y) {
return { x, y };
}
createPoint(1, 2);/*#__PURE__*/ createPoint(1, getY());/*#__PURE__*/ createPoint(1, /*#__PURE__*/ getY());/*#__NO_SIDE_EFFECTS__*/
function createPoint(x, y) {
return { x, y };
}const record = { _internalValue: 42 };
Object.getOwnPropertyDescriptor(record, /*@__KEY__*/ "_internalValue");import { jsx as _jsx } from "preact/jsx-runtime";
const heading = _jsx("h1", {
children: "Hello",
});var supportsConditionalCompilation = false;
/*@cc_on
supportsConditionalCompilation = true;
@*/