Closed catloversg closed 4 days ago
I found this bug while implementing #1789.
Test code:
/** @param {NS} ns */ export async function main(ns) { ns.tail(); const object = { prop1: 1, prop2: 2, }; delete object.prop1, object.prop2; // Wrong // delete object.prop1; delete object.prop2; // Correct ns.print(object); }
Slightly surprised lint doesn't complain about this, but I guess it's considered covered by "don't use delete."
I found this bug while implementing #1789.
Test code: