Skip to content

Commit 46f3efa

Browse files
committed
Tweak grammar
This is in light of general bs.val external names needing to be named now. This message makes it less confusing while refactoring both bs.val and bs.get/set externals
1 parent 18d56c2 commit 46f3efa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jscomp/syntax/ast_external_process.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,11 @@ let parse_external_attributes
331331
| "bs.new" -> {st with new_name = name_from_payload_or_prim ~loc payload}
332332
| "bs.set_index" ->
333333
if String.length prim_name_check <> 0 then
334-
Location.raise_errorf ~loc "[@@bs.set_index] expect external names to be empty string";
334+
Location.raise_errorf ~loc "[@@bs.set_index] this particular external's name needs to be a placeholder empty string";
335335
{st with set_index = true}
336336
| "bs.get_index"->
337337
if String.length prim_name_check <> 0 then
338-
Location.raise_errorf ~loc "[@@bs.get_index] expect external names to be empty string";
338+
Location.raise_errorf ~loc "[@@bs.get_index] this particular external's name needs to be a placeholder empty string";
339339
{st with get_index = true}
340340
| "bs.obj" -> {st with mk_obj = true}
341341
| "bs.return" ->

0 commit comments

Comments
 (0)