private-error-location.js (306B)
1 // Bug 1770609 - Ensure the line number reported is correctly the source of the 2 // syntax error, not just the first observation of the name. 3 try { 4 eval(`class A { #declared; } 5 m.#declared;`) 6 } catch (e) { 7 assertEq(e instanceof SyntaxError, true) 8 assertEq(e.lineNumber, 2); 9 }