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
8ae5b902
Commit
8ae5b902
authored
9 years ago
by
charguer
Committed by
Thomas Wood
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
bugfix
parent
bf86874c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
generator/js_of_ast.ml
+4
-2
4 additions, 2 deletions
generator/js_of_ast.ml
with
4 additions
and
2 deletions
generator/js_of_ast.ml
+
4
−
2
View file @
8ae5b902
...
...
@@ -727,8 +727,10 @@ and js_of_expression ctx dest e =
|
Texp_record
(
llde
,_
)
->
let
sexp
=
ppf_record
(
List
.
map
(
fun
(
_
,
lbl
,
exp
)
->
(
lbl
.
lbl_name
,
inline_of_wrap
exp
))
llde
)
in
apply_dest
ctx
dest
sexp
|
Texp_field
(
exp
,
_
,
lbl
)
->
ppf_field_access
(
inline_of_wrap
exp
)
lbl
.
lbl_name
|
Texp_field
(
exp
,
_
,
lbl
)
->
let
sexp
=
ppf_field_access
(
inline_of_wrap
exp
)
lbl
.
lbl_name
in
apply_dest
ctx
dest
sexp
|
Texp_assert
e
->
let
sexp
=
inline_of_wrap
e
in
Printf
.
sprintf
"throw %s;"
sexp
...
...
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