Silence Windows warning.
R=mstarzinger@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10449108 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11699 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
f6017d36f2
commit
4b583674da
@ -443,8 +443,9 @@ Handle<Value> Shell::CreateExternalArray(const Arguments& args,
|
||||
|
||||
void Shell::ExternalArrayWeakCallback(Persistent<Value> object, void* data) {
|
||||
HandleScope scope;
|
||||
Local<Value> length = object->ToObject()->Get(String::New("byteLength"));
|
||||
V8::AdjustAmountOfExternalAllocatedMemory(-length->Uint32Value());
|
||||
int32_t length =
|
||||
object->ToObject()->Get(String::New("byteLength"))->Uint32Value();
|
||||
V8::AdjustAmountOfExternalAllocatedMemory(-length);
|
||||
delete[] static_cast<uint8_t*>(data);
|
||||
object.Dispose();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user