Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 77ab790

Browse files
committed
chakrashim: remove stale ref objectInstance and save 8bytes
PR-URL: #432 Reviewed-By: Kyle Farnung <kfarnung@microsoft.com> Reviewed-By: Jimmy Thomson <jithomson@microsoft.com>
1 parent 5db7165 commit 77ab790

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

deps/chakrashim/src/v8chakra.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ class ObjectData: public ExternalData {
161161
bool isRefValue;
162162
};
163163

164-
JsValueRef objectInstance;
165164
Persistent<ObjectTemplate> objectTemplate; // Original ObjectTemplate
166165
SetterGetterInterceptor * setterGetterInterceptor;
167166
int internalFieldCount;

deps/chakrashim/src/v8objecttemplate.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,6 @@ Local<Object> ObjectTemplate::NewInstance(Handle<Object> prototype) {
947947
return Local<Object>();
948948
}
949949

950-
objectData->objectInstance = newInstanceRef;
951950
return Local<Object>::New(static_cast<Object*>(newInstanceRef));
952951
}
953952

0 commit comments

Comments
 (0)