[Webkit-unassigned] [Bug 153441] New: ES6 classes that have the same name as DOM classes fail with an error
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 25 13:18:54 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=153441
Bug ID: 153441
Summary: ES6 classes that have the same name as DOM classes
fail with an error
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: esprehn at chromium.org
ex.
class Node { }
SyntaxError: Can't create duplicate variable that shadows a global property: 'Node'
but you can write
var Node = class Node { }
this works fine in Chrome and Firefox 45.
--
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/20160125/9e239566/attachment.html>
More information about the webkit-unassigned
mailing list