v8/test/cctest/interpreter
Joyee Cheung a829781cc5 [class] improve error message of private brand checks
Previously we use the error message for normal invalid private member
access, so for a failed brand check for class C, the error is

TypeError: Cannot read private member C from an object whose class did not declare it

This updates the message to

TypeError: Object must be an instance of class C

Bug: v8:8330
Change-Id: Ida98f46b8387631194a9b7a48bd1f419045ac6e7
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2100688
Commit-Queue: Joyee Cheung <joyee@igalia.com>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: Shu-yu Guo <syg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66923}
2020-03-31 14:06:27 +00:00
..
bytecode_expectations [class] improve error message of private brand checks 2020-03-31 14:06:27 +00:00
bytecode-expectations-printer.cc [api] Create v8::String::NewFromLiteral that returns Local<String> 2020-03-09 12:02:07 +00:00
bytecode-expectations-printer.h [cleanup] Eliminate non-const reference parameters 2019-09-10 09:31:07 +00:00
generate-bytecode-expectations.cc [top-level-await] Add support for parsing top level await 2019-09-24 14:01:32 +00:00
interpreter-tester.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
interpreter-tester.h [test] Add receiver as argument in the interpreter tests 2020-03-16 14:20:23 +00:00
source-position-matcher.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
source-position-matcher.h Move remaining files in src/ 2019-05-24 18:24:36 +00:00
test-bytecode-generator.cc [class] implement inspector support for private instance methods 2019-12-04 20:13:34 +00:00
test-interpreter-intrinsics.cc [runtime] Reverse JS arguments: fix tests and builtin arguments 2020-03-20 13:07:11 +00:00
test-interpreter.cc [interpreter] Make IterationBody StackChecks implicit within JumpLoop 2020-03-20 13:22:41 +00:00
test-source-positions.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00