-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: AsyncRewriter
-
None
-
None
-
Developer Tools
In the async rewriter source, we demangle source code in error messages so that the original expressions show up in error messages rather than the transpiled ones.
However, this breaks for multiline errors; e.g. when writing
test> db.coll.find( | ).doesnotexist() Uncaught: )" , _ex , (intermediate value)(intermediate value)(intermediate value)).doesnotexist is not a function
rather than the single-line variant
test> db.coll.find( ).doesnotexist() Uncaught: TypeError: db.coll.find( ).doesnotexist is not a function