[Webkit-unassigned] [Bug 189470] New: Fail to throw TypeError when setting function.length in Array.prototype.unshift
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Sep 10 00:22:42 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=189470
Bug ID: 189470
Summary: Fail to throw TypeError when setting function.length
in Array.prototype.unshift
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: sunlili at ict.ac.cn
Hello, executing following code:
-----------------------------------
var f = function func1() {};
var a=[];
print(f.length);
a.unshift.call(f,1,2,3)
print(f.length);
-----------------------------------
Output of jsc is:
0
0
However, since function's length property is readonly, a TypeError should be thrown in unshift() execution.
BT group
2018.09.10
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180910/67e6dc48/attachment.html>
More information about the webkit-unassigned
mailing list