mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:08:12 +00:00
LibJS: Boolean, Number and String prototypes should have values too
It appears that calling .valueOf() on an objectified primitive's prototype should return a value after all. This matches what other engines are doing.
This commit is contained in:
parent
c06d5ef114
commit
070a8f2689
11 changed files with 33 additions and 9 deletions
|
@ -30,7 +30,7 @@
|
|||
|
||||
namespace JS {
|
||||
|
||||
class StringObject final : public Object {
|
||||
class StringObject : public Object {
|
||||
public:
|
||||
explicit StringObject(PrimitiveString*);
|
||||
virtual ~StringObject() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue