blob: 927d3bf5a8265d790f52bda9c3331f726d5bc24f [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +01001// 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
10var num = new Number(10);
11Array.prototype.__defineGetter__(0,function(){
12 return num;
13})
14Array.prototype.__defineSetter__(0,function(value){
15})
16var str=decodeURI("%E7%9A%84");
17assertEquals(0x7684, str.charCodeAt(0));