Skip to content

Commit

Permalink
test: show crash with empty object key (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro authored Jul 21, 2024
1 parent 659ce0e commit dd13b62
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/blackbox-tests/empty-obj.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

$ . ./setup.sh
$ cat > x.re <<EOF
> let obj = {"": someValue};
> EOF
$ melc -pp 'refmt --print=binary' -ppx melppx -impl x.re
Fatal error: exception File "jscomp/common/lam_methname.ml", line 136, characters 2-8: Assertion failed
melc: internal error, uncaught exception:
Melangelib.Cmd_ast_exception.Error(_)

[125]

0 comments on commit dd13b62

Please sign in to comment.