Get the JS target basics working
This commit is contained in:
parent
dd14c8471d
commit
33948be6b1
|
@ -69,7 +69,7 @@ export class ExpansionContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
argDecl(t: TemplateFunction, name: Substitution, type: Substitution): Items {
|
argDecl(t: TemplateFunction, name: Substitution, type: Substitution): Items {
|
||||||
return (this.typescript) ? t`${name}: ${type}` : t`name`;
|
return (this.typescript) ? t`${name}: ${type}` : t`${name}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
turnDecl(t: TemplateFunction): Items {
|
turnDecl(t: TemplateFunction): Items {
|
||||||
|
@ -215,7 +215,7 @@ ${joinItems(sa.captureBinders.map(binderTypeGuard(t)), '\n')}
|
||||||
switch (s.triggerType) {
|
switch (s.triggerType) {
|
||||||
case 'asserted':
|
case 'asserted':
|
||||||
entity = t`{
|
entity = t`{
|
||||||
assert(${ctx.turnDecl(t)}, ${ctx.argDecl(t, '__vs', '__SYNDICATE__.AnyValue')}, __handle: __SYNDICATE__.Handle) {
|
assert(${ctx.turnDecl(t)}, ${ctx.argDecl(t, '__vs', '__SYNDICATE__.AnyValue')}, ${ctx.argDecl(t, '__handle', '__SYNDICATE__.Handle')}) {
|
||||||
${guardBody(terminalWrap(t, s.terminal, walk(s.body)))}
|
${guardBody(terminalWrap(t, s.terminal, walk(s.body)))}
|
||||||
}
|
}
|
||||||
}`;
|
}`;
|
||||||
|
|
|
@ -10,6 +10,6 @@ console.time('box-and-client-' + N.toString());
|
||||||
boot() {
|
boot() {
|
||||||
thisTurn.activeFacet.preventInertCheck();
|
thisTurn.activeFacet.preventInertCheck();
|
||||||
const ds = create new Dataspace();
|
const ds = create new Dataspace();
|
||||||
Box.boot(ds);
|
Box.boot(thisTurn, ds);
|
||||||
Client.boot(ds, () => console.timeEnd('box-and-client-' + N.toString()));
|
Client.boot(thisTurn, ds, () => console.timeEnd('box-and-client-' + N.toString()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue