[Webkit-unassigned] [Bug 221177] New: A possible bug about Array.prototype.push
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jan 30 06:00:58 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=221177
Bug ID: 221177
Summary: A possible bug about Array.prototype.push
Product: WebKit
Version: WebKit Local Build
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: nisl_grammarly1 at 163.com
#version: d940b47
#Testcase
var a=[1,2];
Object.freeze(a);
var b=a.push();
print(b);
#Command:
./webkit/WebKitBuild/Release/bin/jsc testcase.js
#Output:
2
#Expected output:
TypeError: "length" is read-only
# Description
When executing this test case, a is frozen in the second line, so an error should be thrown when executing Array.prototype.push, but JavaScriptCore outputs normally.
--
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/20210130/d2633fac/attachment-0001.htm>
More information about the webkit-unassigned
mailing list