diff --git a/test/blackbox-tests/empty-obj.t b/test/blackbox-tests/empty-obj.t new file mode 100644 index 000000000..0bb2647d0 --- /dev/null +++ b/test/blackbox-tests/empty-obj.t @@ -0,0 +1,11 @@ + + $ . ./setup.sh + $ cat > x.re < 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]