| Index: src/typedarray.js
|
| diff --git a/src/typedarray.js b/src/typedarray.js
|
| index a7421ae1c97823dc3f1a8fb9a705e273c69f02ed..601012d58ef07c15f446220f547605f5582b137e 100644
|
| --- a/src/typedarray.js
|
| +++ b/src/typedarray.js
|
| @@ -180,6 +180,8 @@ function SetupTypedArray(arrayId, name, constructor, elementSize) {
|
| %SetCode(constructor, fun);
|
| %FunctionSetPrototype(constructor, new $Object());
|
|
|
| + %SetProperty(constructor, "BYTES_PER_ELEMENT", elementSize,
|
| + READ_ONLY | DONT_ENUM | DONT_DELETE);
|
| %SetProperty(constructor.prototype,
|
| "constructor", constructor, DONT_ENUM);
|
| %SetProperty(constructor.prototype,
|
|
|