Skip to content

Commit d631f67

Browse files
committed
Give symbol a description
1 parent 62dda7b commit d631f67

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/javascript/lib/core/special_forms.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function cond(...clauses) {
1616

1717
function run_list_generators(generator, generators) {
1818
if (generators.length === 0) {
19-
return generator.map((x) => {
19+
return generator.map(x => {
2020
if (Array.isArray(x)) {
2121
return x;
2222
}
@@ -44,7 +44,7 @@ function _for(expression, generators, collectable_protocol, into = []) {
4444
if (expression.guard.apply(this, value)) {
4545
result = fun(
4646
result,
47-
new Core.Tuple(Symbol.for('cont'), expression.fn.apply(this, value)),
47+
new Core.Tuple(Symbol.for('cont'), expression.fn.apply(this, value))
4848
);
4949
}
5050
}
@@ -57,7 +57,7 @@ function _try(
5757
rescue_function,
5858
catch_fun,
5959
else_function,
60-
after_function,
60+
after_function
6161
) {
6262
let result = null;
6363

@@ -145,15 +145,15 @@ function receive(clauses, timeout = 0, timeoutFn = () => true) {
145145
console.warn('Receive not supported');
146146

147147
const messages = []; // this.mailbox.get();
148-
const NOMATCH = Symbol();
148+
const NOMATCH = Symbol('NOMATCH');
149149

150150
for (let i = 0; i < messages.length; i++) {
151151
for (const clause of clauses) {
152152
const value = Core.Patterns.match_or_default(
153153
clause.pattern,
154154
messages[i],
155155
clause.guard,
156-
NOMATCH,
156+
NOMATCH
157157
);
158158

159159
if (value !== NOMATCH) {

0 commit comments

Comments
 (0)