[Webkit-unassigned] [Bug 144280] New: ES6 classes: Invalid test regarding binding in ClassDeclaration
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Apr 27 15:01:54 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=144280
Bug ID: 144280
Summary: ES6 classes: Invalid test regarding binding in
ClassDeclaration
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Minor
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: arv at chromium.org
http://trac.webkit.org/browser/trunk/LayoutTests/js/script-tests/class-syntax-name.js#L84
runTestShouldThrow("class A { constructor() { A = 1; } }; new A");
This should not throw. ClassDeclarations do not create an inner const binding. Your code seems to be doing the right thing based on the -expexted.txt
Another line to add to this test would be:
runTestShouldThrow("class A { constructor() { A = 1; } }; new A; new A");
which should throw because in the second call to `new A` A is 1.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150427/1ab19ea2/attachment.html>
More information about the webkit-unassigned
mailing list