// input.js var x = function ( ) { } ?. ( ) . x ; __________________________________________ Hello, Executing the input.js using JSC, it is terminated normally. However, it is expected to throw TypeError since `function ( ) { } ?. ( )` is `undefined`. Running the input.js with JSC results in: --- $ jsc input.js // no error --- while other engines behave like: --- # V8 $ node input.js input.js:1: TypeError: Cannot read properties of undefined (reading 'x') var x = function ( ) { } ?. ( ) . x ; ^ TypeError: Cannot read properties of undefined (reading 'x') at input.js:1:33 # GraalJS $ js input.js TypeError: Cannot read property 'x' of undefined at <js> :program(input.js:1:8-34) --- WebKit version: 615.1.10
<rdar://problem/101940388>
*** Bug 247434 has been marked as a duplicate of this bug. ***
Pull request: https://github.com/WebKit/WebKit/pull/6799
Committed 257004@main (23879e6bd1a0): <https://commits.webkit.org/257004@main> Reviewed commits have been landed. Closing PR #6799 and removing active labels.