[Webkit-unassigned] [Bug 247434] New: Invalid call chained with optional access
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 3 09:15:34 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=247434
Bug ID: 247434
Summary: Invalid call chained with optional access
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
( { } . x ( ) ?. x ) ;
__________________
Hello,
Executing the input.js using JSC, it is terminated normally.
However, it is expected to throw TypeError since `{ } . x` is not a function.
Running the input.js with JSC gives
---
$ jsc input.js
// no error
---
while other engines behave like
---
# V8
$ node input.js
input.js:1: TypeError: {}.x is not a function
( { } . x ( ) ?. x ) ;
^
TypeError: {}.x is not a function
at input.js:1:9
# GraalJS
$ js input.js
TypeError: (intermediate value).x is not a function
at <js> :program(input.js:1:2-12)
---
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/372ab14f/attachment-0001.htm>
More information about the webkit-unassigned
mailing list