[Webkit-unassigned] [Bug 155545] New: [ES6] Class syntax. Access to new.target inside of the eval should not lead to SyntaxError
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 16 10:08:23 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=155545
Bug ID: 155545
Summary: [ES6] Class syntax. Access to new.target inside of the
eval should not lead to SyntaxError
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: gskachkov at gmail.com
In current version of ES6 class we can't access to the new.target in eval:
class A {
constructor() {
eval('debug(new.target)');
}
}
new A();//SyntaxError: new.target is only valid inside functions.
--
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/20160316/dfeed25d/attachment.html>
More information about the webkit-unassigned
mailing list