Implement Proxy object internal methods (#39)

* updated proxy methods
GetPrototypeOf
SetPrototypeOf
IsExtensible
PreventExtensions
GetOwnProperty
DefineOwnProperty
HasProperty
Get
Set
Delete
ProxyCreate

* TODO
Enumerate and OwnPropertyKeys
Call and Construct

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
Hyukwoo Park 2019-01-21 12:22:40 +09:00 committed by yichoi
commit 40d4fa40c6
21 changed files with 1005 additions and 301 deletions

View file

@ -87,13 +87,13 @@ const char* errorMessage_GlobalObject_IllegalFirstArgument = "%s: illegal first
const char* errorMessage_String_InvalidStringLength = "Invalid string length";
void ErrorObject::throwBuiltinError(ExecutionState& state, Code code, String* objectName, bool prototoype, String* functionName, const char* templateString)
void ErrorObject::throwBuiltinError(ExecutionState& state, Code code, String* objectName, bool prototype, String* functionName, const char* templateString)
{
StringBuilder replacerBuilder;
if (objectName->length()) {
replacerBuilder.appendString(objectName);
}
if (prototoype) {
if (prototype) {
replacerBuilder.appendChar('.');
replacerBuilder.appendString(state.context()->staticStrings().prototype.string());
}