7cf4b12d88
* Fix crash for private identifier in expando assignments It does this by disallowing private identifiers from expando assignments entirely. I haven't thought of a scenario where they make sense, but I haven't thought about it exhaustively either. Fixes #37356 * Update baselines I think the new error is probably better. It's certainly different!
8 lines
162 B
TypeScript
8 lines
162 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @declaration: true
|
|
// @emitDeclarationOnly: true
|
|
// @Filename: privateIdentifierExpando.js
|
|
|
|
const x = {};
|
|
x.#bar.baz = 20;
|