Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jsexplain
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Verified Software
jsexplain
Commits
ec176a45
Commit
ec176a45
authored
9 years ago
by
charguer
Browse files
Options
Downloads
Patches
Plain Diff
test4
parent
87838336
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
generator/js_of_ast.ml
+1
-1
1 addition, 1 deletion
generator/js_of_ast.ml
generator/tests/testctx.ml
+8
-1
8 additions, 1 deletion
generator/tests/testctx.ml
with
9 additions
and
2 deletions
generator/js_of_ast.ml
+
1
−
1
View file @
ec176a45
...
@@ -662,7 +662,7 @@ let to_javascript module_name typedtree =
...
@@ -662,7 +662,7 @@ let to_javascript module_name typedtree =
(*
(*
ctx_empty
ctx_empty
ctx_push(ctx, bindings) where bindings = [ { key:"ls", val:ls}, { key:"xs", val:xs } ]
ctx_push(ctx, bindings) where bindings = [ { key:
"ls", val:
ls}, { key:"xs", val:xs } ]
push("ls", ls, push("v", v, push("y", y, ctx314));
push("ls", ls, push("v", v, push("y", y, ctx314));
...
...
This diff is collapsed.
Click to expand it.
generator/tests/testctx.ml
+
8
−
1
View file @
ec176a45
...
@@ -68,7 +68,14 @@ let test3 x =
...
@@ -68,7 +68,14 @@ let test3 x =
in
in
y
y
let
test4
x
=
match
x
with
|
None
->
1
|
Some
y
->
begin
match
y
with
|
None
->
2
|
Some
z
->
z
end
(*
(*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment