v8/test/message/fail/class-field-constructor.out
Sathya Gunasekaran ffda54fbd4 [class] Throw early errors for fields with constructor and prototype name
See https://tc39.github.io/proposal-class-fields/#sec-static-semantics-early-errors

Bug: v8:5367
Change-Id: I0329d1b41c4658b733df47397fbcc2c16bad117e
Reviewed-on: https://chromium-review.googlesource.com/792946
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Reviewed-by: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49672}
2017-11-28 15:00:18 +00:00

4 lines
185 B
Plaintext

*%(basename)s:8: SyntaxError: Classes may not have a field named 'constructor'
constructor = function() {};
^^^^^^^^^^^
SyntaxError: Classes may not have a field named 'constructor'