mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 20:29:42 +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:
@@ -28,6 +28,7 @@
|
||||
#include <LibJS/Runtime/BooleanObject.h>
|
||||
|
||||
namespace JS {
|
||||
|
||||
BooleanObject::BooleanObject(bool value)
|
||||
: m_value(value)
|
||||
{
|
||||
@@ -37,4 +38,5 @@ BooleanObject::BooleanObject(bool value)
|
||||
BooleanObject::~BooleanObject()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user