Hacker News new | ask | show | jobs
by aeflash 3934 days ago
Are typed arrays stored outside of the JS heap? For example, in node.js you can use Buffers to get around V8's 1.8GB JS heap limit -- are typed arrays similar? Does the ES6 spec specify whether typed arrays should be stored separately from the JS heap, or is that an implementation detail?
1 comments

Yes, that is left unspecified in the spec:

* http://www.ecma-international.org/ecma-262/6.0/#sec-allocate... (relevant: step 4, CreateByteDataBlock())