[Webkit-unassigned] [Bug 247427] New: Setting prototype of global `this` throws `TypeError`
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 3 08:51:01 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=247427
Bug ID: 247427
Summary: Setting prototype of global `this` throws `TypeError`
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: p51lee at kaist.ac.kr
// input.js
Object . setPrototypeOf ( this , { } ) ;
__________________________________________
Hello,
Executing the input.js using JSC throws TypeError, but it is expected to terminate normally.
Running the input.js with JSC gives
---
$ jsc input.js
Exception: TypeError: Cannot set prototype of immutable prototype object
setPrototypeOf@[native code]
global code at input.js:1:24
---
while other engines behave like
---
# V8
$ node input.js
// no error
# GraalJS
$ js input.js
// no error
---
WebKit version: 615.1.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/20221103/2295674b/attachment.htm>
More information about the webkit-unassigned
mailing list