Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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: --allow-natives-syntax | |
| 6 | |
| 7 // These tests are meant to ensure that that the Object.observe runtime function s | |
|
Jakob Kummerow
2014/05/12 08:32:39
nit: 80col
adamk
2014/05/12 08:55:07
Done.
| |
| 8 // are hardened. | |
| 9 | |
| 10 var obj = {}; | |
| 11 %SetIsObserved(obj); | |
| 12 assertThrows(function() { | |
| 13 %SetIsObserved(obj); | |
| 14 }); | |
| 15 | |
| 16 assertThrows(function() { | |
| 17 %SetIsObserved(this); | |
| 18 }); | |
| OLD | NEW |