| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 "use strict"; | 5 Array.prototype.__defineSetter__(0,function(value){}); |
| 6 | 6 |
| 7 class Test { | 7 if (this.Intl) { |
| 8 m() { | 8 var o = new Intl.DateTimeFormat('en-US', {'timeZone': 'Asia/Katmandu'}) |
| 9 super.length = 10; | |
| 10 } | |
| 11 } | 9 } |
| 12 | |
| 13 var array = []; | |
| 14 Test.prototype.m.call(array); | |
| 15 assertEquals(10, array.length); | |
| OLD | NEW |