Chromium Code Reviews| 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 // | |
| 5 // Flags: --allow-natives-syntax | |
| 6 | 4 |
| 7 var ab = new ArrayBuffer(100); | 5 function nope() { return false; } |
| 8 %ArrayBufferNeuter(ab); | 6 var a = [ 1, 2, 3 ]; |
| 9 %ArrayBufferNeuter(ab); | 7 Object.seal(a); |
| 8 Object.isSealed = nope; | |
| 9 assertThrows("a.shift()"); | |
|
mvstanton
2014/04/03 08:05:24
I guess here is the full list of breakers:
assert
Michael Starzinger
2014/04/03 08:11:28
Done. Added the asserts.
| |
| OLD | NEW |