mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
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:
parent
7d320870d7
commit
40d4fa40c6
21 changed files with 1005 additions and 301 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue