Skip to content

Commit e51a65e

Browse files
committed
dev
1 parent 591e5a1 commit e51a65e

File tree

17 files changed

+112889
-216750
lines changed

17 files changed

+112889
-216750
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<!DOCTYPE html>
2-
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>index (js_of_ocaml-lwt.index)</title><meta charset="utf-8"/><link rel="stylesheet" href="../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – js_of_ocaml-lwt</nav><header class="odoc-preamble"><h1 id="js_of_ocaml-lwt-index"><a href="#js_of_ocaml-lwt-index" class="anchor"></a>js_of_ocaml-lwt index</h1></header><nav class="odoc-toc"><ul><li><a href="#library-js_of_ocaml-lwt">Library js_of_ocaml-lwt</a></li><li><a href="#library-js_of_ocaml-lwt.graphics">Library js_of_ocaml-lwt.graphics</a></li><li><a href="#library-js_of_ocaml-lwt.logger">Library js_of_ocaml-lwt.logger</a></li></ul></nav><div class="odoc-content"><h2 id="library-js_of_ocaml-lwt"><a href="#library-js_of_ocaml-lwt" class="anchor"></a>Library js_of_ocaml-lwt</h2><p>The entry point of this library is the module: <a href="Js_of_ocaml_lwt/index.html"><code>Js_of_ocaml_lwt</code></a>.</p><h2 id="library-js_of_ocaml-lwt.graphics"><a href="#library-js_of_ocaml-lwt.graphics" class="anchor"></a>Library js_of_ocaml-lwt.graphics</h2><p>The entry point of this library is the module: <a href="Graphics_js/index.html"><code>Graphics_js</code></a>.</p><h2 id="library-js_of_ocaml-lwt.logger"><a href="#library-js_of_ocaml-lwt.logger" class="anchor"></a>Library js_of_ocaml-lwt.logger</h2><p>The entry point of this library is the module: <a href="Lwt_log_js/index.html"><code>Lwt_log_js</code></a>.</p></div></body></html>
2+
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>index (js_of_ocaml-lwt.index)</title><meta charset="utf-8"/><link rel="stylesheet" href="../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – js_of_ocaml-lwt</nav><header class="odoc-preamble"><h1 id="js_of_ocaml-lwt-index"><a href="#js_of_ocaml-lwt-index" class="anchor"></a>js_of_ocaml-lwt index</h1></header><nav class="odoc-toc"><ul><li><a href="#library-js_of_ocaml-lwt">Library js_of_ocaml-lwt</a></li><li><a href="#library-js_of_ocaml-lwt.graphics">Library js_of_ocaml-lwt.graphics</a></li></ul></nav><div class="odoc-content"><h2 id="library-js_of_ocaml-lwt"><a href="#library-js_of_ocaml-lwt" class="anchor"></a>Library js_of_ocaml-lwt</h2><p>The entry point of this library is the module: <a href="Js_of_ocaml_lwt/index.html"><code>Js_of_ocaml_lwt</code></a>.</p><h2 id="library-js_of_ocaml-lwt.graphics"><a href="#library-js_of_ocaml-lwt.graphics" class="anchor"></a>Library js_of_ocaml-lwt.graphics</h2><p>The entry point of this library is the module: <a href="Graphics_js/index.html"><code>Graphics_js</code></a>.</p></div></body></html>

doc/dev/manual/debug.wiki

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@ Make sure to use "-g" flags when compiling and linking ocaml bytecode.
66
Js_of_ocaml will attempt to preserve variable names.
77

88
=== Js_of_ocaml flags
9-
* [--pretty] - format the generated JavaScript in a readable way and try to keep OCaml variable names.
10-
* [--no-inline] - prevent function inlining.
11-
* [--debug-info] - annotate the JavaScript file with locations from the OCaml sources.
12-
* [--source-map] - enable source-map support
9+
* {{{--pretty}}} - format the generated JavaScript in a readable way and try to keep OCaml variable names.
10+
* {{{--no-inline}}} - prevent function inlining.
11+
* {{{--debug-info}}} - annotate the JavaScript file with locations from the OCaml sources.
12+
* {{{--source-map}}} - enable source-map support
1313
1414
== JavaScript stacktrace
15-
Js_of_ocaml can attach a JavaScript [Error] that embed the current
16-
stacktrace to an OCaml exception. The [Error] can be attached with
15+
Js_of_ocaml can attach a JavaScript {{{Error}}} that embed the current
16+
stacktrace to an OCaml exception. The {{{Error}}} can be attached with
1717
{{{Js.Js_error.attach_js_backtrace}}} and extracted using
1818
{{{Js.Js_error.of_exn}}}. Un-handled OCaml exception will throw any
19-
JavaScript [Error] attached to them, allowing the JS engine to display
19+
JavaScript {{{Error}}} attached to them, allowing the JS engine to display
2020
the stacktrace nicely.
2121

22-
Js_of_ocaml will attach an [Error] automatically when raising an OCaml
22+
Js_of_ocaml will attach an {{{Error}}} automatically when raising an OCaml
2323
exception (with {{{raise}}}, not with {{{raise_notrace}}}) if
2424
{{{Printexc.backtrace_status() = true}}} and either the environment
25-
variable [OCAMLRUNPARAM] is set with [b=1] or the program was compiled
26-
with [--enable with-js-error].
25+
variable {{{OCAMLRUNPARAM}}} is set with {{{b=1}}} or the program was compiled
26+
with {{{--enable with-js-error}}}.
2727

28-
Note that creating JavaScript [Error]s is costly and can degrade performance a lot.
28+
Note that creating JavaScript {{{Error}}}s is costly and can degrade performance a lot.
2929
This is the reason why such feature is not enabled by default.
3030

3131
== Breakpoint

doc/dev/manual/environment-variable.wiki

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
To resolve an environment variable, js_of_ocaml will perform the
44
following steps, in the given order:
55

6-
- If the variable was set at compile time with the [--setenv VAR] flag, return it.
7-
- If running nodejs and the variable is set in the process environment ([process.env]), return it.
8-
- If the variable is set in [globalThis.jsoo_env], return it. This can be used
6+
* If the variable was set at compile time with the [--setenv VAR] flag, return it.
7+
* If running nodejs and the variable is set in the process environment ([process.env]), return it.
8+
* If the variable is set in [globalThis.jsoo_env], return it. This can be used
99
to set an environment variable inside a web-browser.
10-
- Return Not_found
10+
* Return Not_found

doc/dev/manual/files/boulderdash/boulderdash.bc.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/dev/manual/files/cubes/cubes.bc.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/dev/manual/files/graph_viewer/viewer_js.bc.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/dev/manual/files/hyperbolic/hypertree.bc.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/dev/manual/files/minesweeper/main.bc.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/dev/manual/files/planet/planet.bc.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/dev/manual/files/toplevel/test_dynlink.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)