summaryrefslogtreecommitdiff
path: root/chromium/v8/src/arraybuffer.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/src/arraybuffer.js')
-rw-r--r--chromium/v8/src/arraybuffer.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/chromium/v8/src/arraybuffer.js b/chromium/v8/src/arraybuffer.js
index d1324bbed0d..cf00693be7f 100644
--- a/chromium/v8/src/arraybuffer.js
+++ b/chromium/v8/src/arraybuffer.js
@@ -74,7 +74,11 @@ function SetUpArrayBuffer() {
%FunctionSetPrototype($ArrayBuffer, new $Object());
// Set up the constructor property on the ArrayBuffer prototype object.
- %SetProperty($ArrayBuffer.prototype, "constructor", $ArrayBuffer, DONT_ENUM);
+ %AddNamedProperty(
+ $ArrayBuffer.prototype, "constructor", $ArrayBuffer, DONT_ENUM);
+
+ %AddNamedProperty($ArrayBuffer.prototype,
+ symbolToStringTag, "ArrayBuffer", DONT_ENUM | READ_ONLY);
InstallGetter($ArrayBuffer.prototype, "byteLength", ArrayBufferGetByteLen);