[Webkit-unassigned] [Bug 158062] New: "use strict"; delete ProgressEvent.length; should not throw
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 25 02:39:59 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=158062
Bug ID: 158062
Summary: "use strict"; delete ProgressEvent.length; should not
throw
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: zcorpan at gmail.com
See https://github.com/w3c/web-platform-tests/pull/3068
This fails in WebKit:
<!DOCTYPE html>
<script>
"use strict";
try {
delete ProgressEvent.length;
w('PASS');
} catch(e) {
w('FAIL');
}
</script>
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4231
Per ES6 deleting a function's "length" property should apparently not throw (even in strict mode). It throws in WebKit for a vanilla function:
<!DOCTYPE html>
<script>
"use strict";
var x = function(x) {};
try {
delete x.length;
w('PASS');
} catch(e) {
w('FAIL');
}
</script>
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4232
Also, the ProgressEvent interface object is typeof "object" in WebKit but per WebIDL should be "function".
<!DOCTYPE html>
<script>
w(typeof ProgressEvent == "function" ? "PASS" : "FAIL");
</script>
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4233
--
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/20160525/16789a39/attachment.html>
More information about the webkit-unassigned
mailing list