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

Commit

Permalink
chakrashim: remove stale ref objectInstance and save 8bytes
Browse files Browse the repository at this point in the history
PR-URL: #432

Reviewed-By: Kyle Farnung <kfarnung@microsoft.com>
Reviewed-By: Jimmy Thomson <jithomson@microsoft.com>
  • Loading branch information
obastemur authored and kfarnung committed Jan 9, 2018
1 parent 644a452 commit f001de7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion deps/chakrashim/src/v8chakra.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ class ObjectData: public ExternalData {
bool isRefValue;
};

JsValueRef objectInstance;
Persistent<ObjectTemplate> objectTemplate; // Original ObjectTemplate
SetterGetterInterceptor * setterGetterInterceptor;
int internalFieldCount;
Expand Down
1 change: 0 additions & 1 deletion deps/chakrashim/src/v8objecttemplate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,6 @@ Local<Object> ObjectTemplate::NewInstance(Handle<Object> prototype) {
return Local<Object>();
}

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

Expand Down

0 comments on commit f001de7

Please sign in to comment.