diff --git a/src/js/typedarray.js b/src/js/typedarray.js index 3d500a379e..359f48435a 100644 --- a/src/js/typedarray.js +++ b/src/js/typedarray.js @@ -785,7 +785,7 @@ function TypedArray() { %FunctionSetPrototype(TypedArray, new GlobalObject()); %AddNamedProperty(TypedArray.prototype, "constructor", TypedArray, DONT_ENUM); -utils.InstallFunctions(TypedArray, DONT_ENUM | DONT_DELETE | READ_ONLY, [ +utils.InstallFunctions(TypedArray, DONT_ENUM, [ "from", TypedArrayFrom, "of", TypedArrayOf ]); diff --git a/test/mjsunit/es6/typedarray-of.js b/test/mjsunit/es6/typedarray-of.js index a6df29a0dd..eaa7bde11b 100644 --- a/test/mjsunit/es6/typedarray-of.js +++ b/test/mjsunit/es6/typedarray-of.js @@ -115,9 +115,9 @@ function TestTypedArrayOf(constructor) { // Check superficial features of %TypedArray%.of. var desc = Object.getOwnPropertyDescriptor(constructor.__proto__, "of"); - assertEquals(desc.configurable, false); + assertEquals(desc.configurable, true); assertEquals(desc.enumerable, false); - assertEquals(desc.writable, false); + assertEquals(desc.writable, true); assertEquals(constructor.of.length, 0); // %TypedArray%.of is not a constructor.