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 // Flags: --strong-mode |
| 6 |
| 7 'use strong'; |
| 8 |
| 9 class C {} |
| 10 |
| 11 (function ImmutableClassBindings() { |
| 12 class D {} |
| 13 assertThrows(function(){ eval("C = 0") }, TypeError); |
| 14 assertThrows(function(){ eval("D = 0") }, TypeError); |
| 15 assertEquals('function', typeof C); |
| 16 assertEquals('function', typeof D); |
| 17 })(); |
OLD | NEW |