Skip to content

Commit 0d348a0

Browse files
committed
FMT
1 parent 1b87db8 commit 0d348a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

runtime/js/effect.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ additional parameter which is the current low-level continuation.
5252
// - k is the low level continuation
5353
// - x is the exception stack
5454
// - e is the fiber stack of the parent fiber.
55-
var caml_current_stack = {k:0, x:0, h:0, e:0};
55+
var caml_current_stack = { k: 0, x: 0, h: 0, e: 0 };
5656

5757
//Provides: caml_push_trap
5858
//Requires: caml_current_stack
5959
//If: effects
6060
function caml_push_trap(handler) {
61-
caml_current_stack.x = {h:handler,t:caml_current_stack.x};
61+
caml_current_stack.x = { h: handler, t: caml_current_stack.x };
6262
}
6363

6464
//Provides: caml_pop_trap
@@ -194,7 +194,7 @@ function caml_alloc_stack(hv, hx, hf) {
194194
// Call [hx] in the parent fiber
195195
return call(2, e);
196196
}
197-
return { k: hval, x: {h:hexn,t:0}, h: handlers, e: 0 };
197+
return { k: hval, x: { h: hexn, t: 0 }, h: handlers, e: 0 };
198198
}
199199

200200
//Provides: caml_alloc_stack

runtime/js/jslib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function caml_callback(f, args) {
8989
var saved_stack_depth = caml_stack_depth;
9090
var saved_current_stack = caml_current_stack;
9191
try {
92-
caml_current_stack = {k:0, x:0, h:0, e:0};
92+
caml_current_stack = { k: 0, x: 0, h: 0, e: 0 };
9393
var res = {
9494
joo_tramp: f,
9595
joo_args: args.concat(function (x) {

0 commit comments

Comments
 (0)