blob: f54e5593b71ba9ca9736cd9635a6533148a86b1e [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +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
5var x = {};
6try {
7Object.defineProperty(String.prototype, "3", { x: function() { x = v; }});
8string = "bla";
9} catch(e) {; }
10assertThrows("Array.prototype.sort.call(string);", TypeError);