v8/test
Shu-yu Guo 80fd0b3d8a Fix the receiver when calling parenthesized optional chains
Correctly passing the receiver depends on the Call AST node's type.
Calling a parenthesized optional chain expression is parsed as a Call of
an OptionalChain of a Property.  Currently the computation of the type
does not take optional chains of property loads into consideration, so
calls of parenthesized optional chain expressions always get passed an
undefined receiver.

Bug: v8:10024
Change-Id: I904b0eeca2df30160def674fb32adf821403aef9
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1938571
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65252}
2019-11-29 00:44:06 +00:00
..
benchmarks Remove 'embedded_builtins' variant 2019-10-22 12:58:02 +00:00
cctest [compiler] Ensure source positions collected when required 2019-11-28 20:14:37 +00:00
common [wasm] Clean up WASM_CALL_INDIRECT macros 2019-11-28 14:44:06 +00:00
debugger [debug] Revert to old line number behavior for new Function() 2019-11-28 12:01:39 +00:00
fuzzer [wasm] Refactor WasmFeatures 2019-11-26 17:36:11 +00:00
inspector [debug] Revert to old line number behavior for new Function() 2019-11-28 12:01:39 +00:00
intl [Intl] Prototype Intl.DisplayNames 2019-11-18 21:48:22 +00:00
js-perf-test [js-perf-tests] Adds performance tests for BigInt subtraction 2019-10-22 13:32:09 +00:00
memory [owners] Remove redundant OWNERS files in test/ 2019-06-24 12:44:32 +00:00
message V8 Wasm locations should always be based on byte offsets 2019-11-05 14:53:45 +00:00
mjsunit Fix the receiver when calling parenthesized optional chains 2019-11-29 00:44:06 +00:00
mkgrokdump [heap] Enable Verify for RO_SPACE when it is shared 2019-11-04 09:55:45 +00:00
mozilla Un-marking tests that were marked SLOW due to TNodification 2019-11-04 13:30:30 +00:00
test262 Revert "[names] Fix some test262 name tests to conform with spec changes" 2019-11-27 16:02:27 +00:00
torque [torque] fix formatting of union types 2019-10-24 10:05:25 +00:00
unittests [wasm] Clean up WASM_CALL_INDIRECT macros 2019-11-28 14:44:06 +00:00
wasm-api-tests [wasm] Clean up WASM_CALL_INDIRECT macros 2019-11-28 14:44:06 +00:00
wasm-js [wasm] Update wasm spec tests 2019-11-28 16:02:05 +00:00
wasm-spec-tests [wasm] Update wasm spec tests 2019-11-28 16:02:05 +00:00
webkit [builtins] Port %TypedArray%.prototype.set to Torque 2019-11-06 12:51:21 +00:00
BUILD.gn [preparser] deprecate stand-alone "preparser" test-suite 2019-11-20 08:52:59 +00:00
OWNERS Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00