[COMPASS-5919] Syntax errors are not serialized correctly in embedded shell Created: 24/Jun/22  Updated: 11/Dec/23  Resolved: 06/Dec/23

Status: Closed
Project: Compass
Component/s: Embedded Shell
Affects Version/s: None
Fix Version/s: 1.41.0

Type: Bug Priority: Major - P3
Reporter: Sergey Petushkov Assignee: Bailey Pearson
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS:
node.js / npm versions:
Additional info:


Attachments: PNG File image-2022-06-24-15-59-22-309.png     PNG File image-2022-06-24-15-59-39-547.png     PNG File screenshot-1.png    
Issue Links:
Fix
is fixed by COMPASS-7497 update node-worker-runtime-thread to ... Closed
Problem/Incident
is caused by MONGOSH-1658 node-worker-runtime: remove function ... Closed
Story Points: 3
Quarter: FY24Q4
Documentation Changes: Not Needed
Sprint: Iteration Nodosaurus, Iteration Pterodactyl, Iteration Qantassaurus

 Description   

Seems like node-runtime can't serialize syntax errors correctly leading to them looking like this in the embedded shell:

Instead of this:



 Comments   
Comment by Githook User [ 11/Dec/23 ]

Author:

{'name': 'Bailey Pearson', 'email': 'bailey.pearson@mongodb.com', 'username': 'baileympearson'}

Message: fix(node-runtime-worker-thread): remove function properties before serializing errors COMPASS-5919 (#1762)
Branch: 1631-dev
https://github.com/mongodb-js/mongosh/commit/010161ab7c59010613b1bf430a898b12f59c1c3f

Comment by Githook User [ 30/Nov/23 ]

Author:

{'name': 'Bailey Pearson', 'email': 'bailey.pearson@mongodb.com', 'username': 'baileympearson'}

Message: fix(node-runtime-worker-thread): remove function properties before serializing errors COMPASS-5919 (#1762)
Branch: main
https://github.com/mongodb-js/mongosh/commit/010161ab7c59010613b1bf430a898b12f59c1c3f

Generated at Wed Feb 07 22:41:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.