Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 var error; | |
| 6 try { reference_error(); } catch (e) { error = e; } | |
| 7 toString = error.toString; | |
| 8 error.__proto__ = []; | |
| 9 assertEquals("ReferenceError: reference_error is not defined", | |
| 10 toString.call(error)); | |
| OLD | NEW |