[Webkit-unassigned] [Bug 152570] New: [ES6] Arrow function. Arrow function should raise exception ReferenceError only when access to 'arguments' in strict mode
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Dec 27 13:07:13 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=152570
Bug ID: 152570
Summary: [ES6] Arrow function. Arrow function should raise
exception ReferenceError only when access to
'arguments' in strict mode
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
Arrow function should raise exception ReferenceError only when access to 'arguments' in strict mode in top level arrow function.
'use strict';
var arr = (error) => {
if (error) {
return arguments;
} else {
return [];
}
};
arr(false) === [];
arr(true); // ReferenceError
--
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/20151227/50530a6e/attachment.html>
More information about the webkit-unassigned
mailing list