OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Flags: --experimental-classes --harmony-classes | 5 // Flags: --harmony-classes |
6 | 6 |
7 'use strict'; | 7 'use strict'; |
8 (function TestArgumentsAccess() { | 8 (function TestArgumentsAccess() { |
9 class Base { | 9 class Base { |
10 constructor() { | 10 constructor() { |
11 assertEquals(2, arguments.length); | 11 assertEquals(2, arguments.length); |
12 assertEquals(1, arguments[0]); | 12 assertEquals(1, arguments[0]); |
13 assertEquals(2, arguments[1]); | 13 assertEquals(2, arguments[1]); |
14 } | 14 } |
15 } | 15 } |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 var eua = new ExtendedUint8Array(10); | 347 var eua = new ExtendedUint8Array(10); |
348 assertEquals(10, eua.length); | 348 assertEquals(10, eua.length); |
349 assertEquals(10, eua.byteLength); | 349 assertEquals(10, eua.byteLength); |
350 eua[0] = 0xFF; | 350 eua[0] = 0xFF; |
351 eua[1] = 0xFFA; | 351 eua[1] = 0xFFA; |
352 assertEquals(0xFF, eua[0]); | 352 assertEquals(0xFF, eua[0]); |
353 assertEquals(0xFA, eua[1]); | 353 assertEquals(0xFA, eua[1]); |
354 assertSame(ExtendedUint8Array.prototype, eua.__proto__); | 354 assertSame(ExtendedUint8Array.prototype, eua.__proto__); |
355 assertEquals("[object Uint8Array]", Object.prototype.toString.call(eua)); | 355 assertEquals("[object Uint8Array]", Object.prototype.toString.call(eua)); |
356 }()); | 356 }()); |
OLD | NEW |