v8/test/message/fail/class-fields-private-class-in-function.out
Joyee Cheung ad988c6964 [parser] fix name and position when reporting private field outside of classes
Bug: v8:8578
Change-Id: If6b62b7d0ca2be03ab46c58d33aa2353ddd44986
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1584251
Commit-Queue: Joyee Cheung <joyee@igalia.com>
Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61318}
2019-05-08 10:13:05 +00:00

5 lines
221 B
Plaintext

*%(basename)s:10: SyntaxError: Private field '#b' must be declared in an enclosing class
getB() { return this.#b; }
^
SyntaxError: Private field '#b' must be declared in an enclosing class