Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // Flags: --debug-code |
| 6 | |
| 7 | // flag --debug-code ensures that we'll abort with a failed smi check without |
| 8 | // the fix. |
| 9 | |
| 10 | var num = new Number(10); |
| 11 | Array.prototype.__defineGetter__(0,function(){ |
| 12 | return num; |
| 13 | }) |
| 14 | Array.prototype.__defineSetter__(0,function(value){ |
| 15 | }) |
| 16 | var str=decodeURI("%E7%9A%84"); |
| 17 | assertEquals(0x7684, str.charCodeAt(0)); |