We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b87db8 commit 0d348a0Copy full SHA for 0d348a0
runtime/js/effect.js
@@ -52,13 +52,13 @@ additional parameter which is the current low-level continuation.
52
// - k is the low level continuation
53
// - x is the exception stack
54
// - e is the fiber stack of the parent fiber.
55
-var caml_current_stack = {k:0, x:0, h:0, e:0};
+var caml_current_stack = { k: 0, x: 0, h: 0, e: 0 };
56
57
//Provides: caml_push_trap
58
//Requires: caml_current_stack
59
//If: effects
60
function caml_push_trap(handler) {
61
- caml_current_stack.x = {h:handler,t:caml_current_stack.x};
+ caml_current_stack.x = { h: handler, t: caml_current_stack.x };
62
}
63
64
//Provides: caml_pop_trap
@@ -194,7 +194,7 @@ function caml_alloc_stack(hv, hx, hf) {
194
// Call [hx] in the parent fiber
195
return call(2, e);
196
197
- return { k: hval, x: {h:hexn,t:0}, h: handlers, e: 0 };
+ return { k: hval, x: { h: hexn, t: 0 }, h: handlers, e: 0 };
198
199
200
//Provides: caml_alloc_stack
runtime/js/jslib.js
@@ -89,7 +89,7 @@ function caml_callback(f, args) {
89
var saved_stack_depth = caml_stack_depth;
90
var saved_current_stack = caml_current_stack;
91
try {
92
- caml_current_stack = {k:0, x:0, h:0, e:0};
+ caml_current_stack = { k: 0, x: 0, h: 0, e: 0 };
93
var res = {
94
joo_tramp: f,
95
joo_args: args.concat(function (x) {
0 commit comments