firefly-compiler 0.5.13 → 0.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiler/JsEmitter.ff +27 -6
- package/fireflysite/Test.ff +8 -2
- package/fireflysite/assets/markdown/reference/FunctionsAndMethods.md +33 -13
- package/output/js/ff/compiler/Builder.mjs +8 -4
- package/output/js/ff/compiler/Compiler.mjs +8 -4
- package/output/js/ff/compiler/Deriver.mjs +2 -2
- package/output/js/ff/compiler/Inference.mjs +68 -48
- package/output/js/ff/compiler/JsEmitter.mjs +102 -34
- package/output/js/ff/compiler/Parser.mjs +70 -62
- package/output/js/ff/compiler/Patterns.mjs +4 -4
- package/output/js/ff/compiler/Resolver.mjs +10 -6
- package/output/js/ff/compiler/Tokenizer.mjs +2 -2
- package/output/js/ff/compiler/Unification.mjs +18 -10
- package/output/js/ff/compiler/Workspace.mjs +20 -18
- package/output/js/ff/core/Array.mjs +8 -8
- package/output/js/ff/core/List.mjs +46 -42
- package/output/js/ff/core/Ordering.mjs +4 -4
- package/output/js/ff/core/Random.mjs +8 -8
- package/output/js/ff/core/Serializable.mjs +8 -8
- package/output/js/ff/core/Task.mjs +2 -2
- package/package.json +1 -1
- package/vscode/package.json +1 -1
|
@@ -267,7 +267,7 @@ return ff_core_Error.Error_rethrow(_w1)
|
|
|
267
267
|
export function Task_race(self_, tasks_) {
|
|
268
268
|
const successChannel_ = ff_core_Task.Task_channel(self_, 0);
|
|
269
269
|
const failureChannel_ = ff_core_Task.Task_channel(self_, 0);
|
|
270
|
-
let live_ =
|
|
270
|
+
let live_ = tasks_.length;
|
|
271
271
|
const started_ = ff_core_List.List_map(tasks_, ((task_) => {
|
|
272
272
|
return ff_core_Task.Task_spawn(self_, ((_) => {
|
|
273
273
|
ff_core_Try.Try_catchAny(ff_core_Core.try_((() => {
|
|
@@ -357,7 +357,7 @@ return ff_core_Error.Error_rethrow(_w1)
|
|
|
357
357
|
export async function Task_race$(self_, tasks_, $task) {
|
|
358
358
|
const successChannel_ = (await ff_core_Task.Task_channel$(self_, 0, $task));
|
|
359
359
|
const failureChannel_ = (await ff_core_Task.Task_channel$(self_, 0, $task));
|
|
360
|
-
let live_ =
|
|
360
|
+
let live_ = tasks_.length;
|
|
361
361
|
const started_ = (await ff_core_List.List_map$(tasks_, (async (task_, $task) => {
|
|
362
362
|
return (await ff_core_Task.Task_spawn$(self_, (async (_, $task) => {
|
|
363
363
|
(await ff_core_Try.Try_catchAny$((await ff_core_Core.try_$((async ($task) => {
|
package/package.json
CHANGED