Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1062)

Unified Diff: src/js/arraybuffer.js

Issue 2126603003: [builtins] Migrate ArrayBufferPrototypeByteLength to C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add comment with ES6 section Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/arraybuffer.js
diff --git a/src/js/arraybuffer.js b/src/js/arraybuffer.js
index b602dcbf259f8d6625f80f66a551c6db3891a4f2..2e7d77e0a37a0acde123cf3d2a40456133421ccf 100644
--- a/src/js/arraybuffer.js
+++ b/src/js/arraybuffer.js
@@ -27,14 +27,6 @@ utils.Import(function(from) {
// -------------------------------------------------------------------
-function ArrayBufferGetByteLen() {
- if (!IS_ARRAYBUFFER(this)) {
- throw MakeTypeError(kIncompatibleMethodReceiver,
- 'ArrayBuffer.prototype.byteLength', this);
- }
- return %_ArrayBufferGetByteLength(this);
-}
-
// ES6 Draft 15.13.5.5.3
function ArrayBufferSlice(start, end) {
if (!IS_ARRAYBUFFER(this)) {
@@ -92,9 +84,6 @@ function ArrayBufferSpecies() {
utils.InstallGetter(GlobalArrayBuffer, speciesSymbol, ArrayBufferSpecies);
-utils.InstallGetter(GlobalArrayBuffer.prototype, "byteLength",
- ArrayBufferGetByteLen);
-
utils.InstallFunctions(GlobalArrayBuffer.prototype, DONT_ENUM, [
"slice", ArrayBufferSlice
]);
« no previous file with comments | « src/builtins.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698