OLD | NEW |
(Empty) | |
| 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 try { |
| 6 // Leave "blarg" as the hole in a new ScriptContext. |
| 7 Realm.eval(Realm.current(), "throw Error(); let blarg"); |
| 8 } catch (e) { } |
| 9 |
| 10 // Access "blarg" via a dynamic lookup. Should not crash! |
| 11 assertThrows(function() { |
| 12 // Prevent full-codegen from optimizing away the %LoadLookupSlot call. |
| 13 eval("var x = 5"); |
| 14 blarg; |
| 15 }); |
OLD | NEW |