mysql2 for Node js. SyntaxError: Unexpected token ':' when JSON.stringify is overridden
Without overriding JSON.stringify, the query works fine. When JSON.stringify is overridden, I get SyntaxError: Unexpected token ':' This is the entire code. I run it with "node filename.js" Why? const mysql = require('mysql2'); const originalStringify = JSON.stringify; /* without this…