corba.js 0.1.10 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/idl/idl.cjs CHANGED
@@ -1586,10 +1586,7 @@ function identifier() {
1586
1586
  function expect(text, customMessage) {
1587
1587
  let t0 = lexer.lex();
1588
1588
  let errorMessage;
1589
- if (customMessage === undefined)
1590
- errorMessage = `expected '${text}' but got '${t0?.toString()}'`;
1591
- else
1592
- errorMessage = customMessage;
1589
+ errorMessage = `expected '${text}' but got '${t0?.toString()}'`;
1593
1590
  if (t0 === undefined)
1594
1591
  throw Error(errorMessage + " but found end of file");
1595
1592
  if (t0.type !== Type.TKN_TEXT || t0.text !== text) {