mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 19:41:49 +00:00
Bug 787775 - Register DataViews with their ArrayBuffers upon creation. r=luke
--HG-- extra : rebase_source : 22a10fe14fbaf7d9c63ae36e6542d9100d3adf8f
This commit is contained in:
parent
4070dd7371
commit
9e6c470b0b
@ -251,6 +251,8 @@ DataViewObject::create(JSContext *cx, uint32_t byteOffset, uint32_t byteLength,
|
||||
|
||||
JS_ASSERT(dvobj.numFixedSlots() == RESERVED_SLOTS);
|
||||
|
||||
arrayBuffer->asArrayBuffer().addView(cx, &dvobj);
|
||||
|
||||
return &dvobj;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user