mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
LibJS: Get the prototype of a new String from the constructor's realm
This commit is contained in:
parent
5606332ed7
commit
c254e4cf10
4 changed files with 16 additions and 10 deletions
|
@ -14,7 +14,7 @@ class StringObject : public Object {
|
|||
JS_OBJECT(StringObject, Object);
|
||||
|
||||
public:
|
||||
static StringObject* create(GlobalObject&, PrimitiveString&);
|
||||
static StringObject* create(GlobalObject&, PrimitiveString&, Object& prototype);
|
||||
|
||||
StringObject(PrimitiveString&, Object& prototype);
|
||||
virtual void initialize(GlobalObject&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue