Skip to content

Commit a724aae

Browse files
committed
Comments
1 parent 77bb771 commit a724aae

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

src/web/editor.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
<script>var APP_LOG_URL = "{{{ LOG_URL }}}";</script>
3232
<script src="{{ &BASE_URL }}/js/localSettings.js"></script>
3333

34-
<!-- [TODO] These will have to be updated to be local. -->
35-
34+
<!-- CnD files. These could be conditionally imported or bundled locally if needed. -->
3635
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/browser/cnd-core-complete.global.js"></script>
3736
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/components/react-component-integration.global.js"></script>
3837
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/components/react-component-integration.css" />

src/web/js/cpo-main.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -443,12 +443,9 @@
443443
};
444444
window.replWidget = CPO.replWidget = replWidget;
445445

446-
// SP : Exposing repl for use. Is this a great idea? Probably not.
446+
// Exposing this for dom-render.js to use for input.
447447
window.__internalRepl = repl;
448-
// SP: Should this be RE-RUN every time?
449-
// Evaluating an expression failed. It was expected to evaluate to a "Pyret Value". It evaluated to the non-"Pyret Value" value: "non-Pyret value; see the console for more details"
450-
//window.__currentModules = gf(repl, "current-modules").app();
451-
448+
452449
/*
453450
$("#runDropdown").click(function() {
454451
$("#run-dropdown-content").toggle();

src/web/js/output-ui.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,13 +1701,16 @@
17011701
}
17021702
container.append($("<span>").text(")"));
17031703
} else if (runtime.ffi.isVSConstrRender(val)) {
1704-
// TODO:
1705-
// - Fallthrough for isInRendererContext being false to just use vsconstr
1706-
// - Safely calling CPO here: are we on a CPO stack? (YES: we are within a runThunk that's running toReprJS)
1707-
// - Make a JS rendered that's nice and expose some JS combinators
17081704

17091705

1710-
// vs-alternatives(skels :: RawArray<ValueSkeleton>)
1706+
// We know we are on the CPO stack here (within a runThink that's running toReprJS).
1707+
// This means we can safely call CPO here.
1708+
1709+
1710+
// A good improvement here would be to build some kind of fallthrough mechanism when
1711+
// isInRendererContext being false to just use vsconstr
1712+
1713+
17111714

17121715
var items = runtime.ffi.toArray(runtime.getField(val, "args"));
17131716
var currentContainer;

0 commit comments

Comments
 (0)