title: Emscripten Bindings: How to create an accessible C/C++ array from Javascript?
body: <p>I am using <a href="https://github.com/kripken/box2d.js/" rel="nofollow">box2d</a> and attempting to create a chain shape. </p>
  
  <p>In order to create a chain shape or polygon shape I must pass an array of vectors in order to specify the geometry. </p>
  
  <p>I do not see any documentation to help me accomplish this, and the notes about bindings <a href="https://github.com/kripken/ammo.js/blob/master/README.markdown" rel="nofollow">here</a> don't go into any detail about arrays. </p>
  
  <p>How can I construct an array? </p>