v8/test
Sathya Gunasekaran ab24897cb0 [fni] Mark computed props as computed, not anonymous function
I thought about potentially adding the identifer ref to the error but
that would require allocating a new string or at the very least
increasing the size of the resulting cons string. Given that the
parser is pretty performance sensitive, I've decided to not display
the identifier.

Previously, the error was:
  _test.js:3: Error
  a[foo].c = () => { throw Error(); };
                     ^
  Error
    at a.(anonymous function).c (_test.js:3:26)
    at _test.js:5:1

With this patch, the error becomes:
  _test.js:3: Error
  a[foo].c = () => { throw Error(); };
                     ^
  Error
    at a.<computed>.c (_test.js:3:26)
    at _test.js:5:1

Bug: v8:8823
Change-Id: I557b3517e317652c447ca06c5a400e9625353d9b
Reviewed-on: https://chromium-review.googlesource.com/c/1495017
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59985}
2019-03-01 20:52:03 +00:00
..
benchmarks [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
cctest [fni] Mark computed props as computed, not anonymous function 2019-03-01 20:52:03 +00:00
common Reland "[wasm] add wasm atomic wait callback test" 2019-02-20 05:17:07 +00:00
debugger [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
fuzzer [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
inspector [Inspector] Add tests for Runtime domain 2019-03-01 20:34:53 +00:00
intl [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
js-perf-test [test] Add perf test for in operator on arrays 2019-02-20 22:36:13 +00:00
memory [snapshot] Remove the builtins snapshot 2018-10-31 10:18:28 +00:00
message [fni] Mark computed props as computed, not anonymous function 2019-03-01 20:52:03 +00:00
mjsunit Replace assertErrorMessage in mjsunit test 2019-03-01 18:15:13 +00:00
mkgrokdump [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
mozilla [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
preparser [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
test262 [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
torque [torque] Simplify class and struct construction 2019-02-27 17:36:37 +00:00
unittests [zone] Remove segment pooling from accounting allocator 2019-03-01 09:25:48 +00:00
wasm-js [testrunner] handle timeout param in file 2019-02-27 17:49:17 +00:00
wasm-spec-tests [wasm] Update spec tests 2019-02-27 10:42:02 +00:00
webkit [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
BUILD.gn Add target for common test headers 2019-02-12 09:30:01 +00:00
OWNERS Make tmrts an infra OWNER 2019-02-15 09:02:24 +00:00