diff options
author | Linus Groh <mail@linusgroh.de> | 2021-07-05 18:31:56 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-07-05 20:21:26 +0100 |
commit | 339ccba3545c40dfa99f5594806563ca4026c200 (patch) | |
tree | 1572779ae7ac5f82afbb7bd82a5b1c769d5a28f9 /Userland/Libraries/LibWeb/CMakeLists.txt | |
parent | e1906d74b80b7c8c9bc128f0ead210b6eac543b2 (diff) | |
download | serenity-339ccba3545c40dfa99f5594806563ca4026c200.zip |
LibJS: Make Object.prototype.toString() fully spec compliant
- Fix evaluation order: IsArray(O) should always be called and before
Get(O, @@toStringTag), previously it was the other way around and
IsArray would only be called if @@toStringTag is not a string
- Add missing exception checks to both function calls
- Add missing builtin tag for arguments object
Also, while we're here:
- Update variable names to match spec
- Add spec step comments
Diffstat (limited to 'Userland/Libraries/LibWeb/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions