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: --allow-natives-syntax |
| 6 |
| 7 assertSame = function assertSame() { |
| 8 if (found === expected) { |
| 9 if (1 / expected) return; |
| 10 } else if ((expected !== expected) && (found !== found)) { |
| 11 return; |
| 12 }; |
| 13 }; |
| 14 assertEquals = function assertEquals() { |
| 15 if (expected) {; |
| 16 } |
| 17 }; |
| 18 assertArrayEquals = function assertArrayEquals() { |
| 19 var start = ""; |
| 20 if (name_opt) { |
| 21 start = name_opt + " - "; |
| 22 }; |
| 23 if (expected.length == found.length) { |
| 24 for (var i = 0; i < expected.length; ++i) {; |
| 25 } |
| 26 } |
| 27 }; |
| 28 assertPropertiesEqual = function assertPropertiesEqual() { |
| 29 if (found) {; |
| 30 } |
| 31 }; |
| 32 assertToStringEquals = function assertToStringEquals() { |
| 33 if (found) {; |
| 34 } |
| 35 }; |
| 36 assertTrue = function assertTrue() {; |
| 37 }; |
| 38 assertFalse = function assertFalse() {; |
| 39 }; |
| 40 assertUnreachable = function assertUnreachable() { |
| 41 var message = "Fail" + "ure: unreachable"; |
| 42 if (name_opt) { |
| 43 message += " - " + name_opt; |
| 44 } |
| 45 }; |
| 46 OptimizationStatus = function() {} |
| 47 assertUnoptimized = function assertUnoptimized() {; |
| 48 } |
| 49 assertOptimized = function assertOptimized() {; |
| 50 } |
| 51 triggerAssertFalse = function() {} |
| 52 var __v_2 = {}; |
| 53 var __v_3 = {}; |
| 54 var __v_4 = {}; |
| 55 var __v_5 = {}; |
| 56 var __v_6 = 1073741823; |
| 57 var __v_7 = {}; |
| 58 var __v_8 = {}; |
| 59 var __v_9 = {}; |
| 60 var __v_10 = {}; |
| 61 var __v_11 = 2147483648; |
| 62 var __v_12 = 1073741823; |
| 63 var __v_13 = {}; |
| 64 var __v_14 = {}; |
| 65 var __v_15 = -2147483648; |
| 66 var __v_16 = {}; |
| 67 var __v_17 = {}; |
| 68 var __v_19 = {}; |
| 69 var __v_20 = {}; |
| 70 var __v_21 = {}; |
| 71 var __v_22 = {}; |
| 72 var __v_23 = {}; |
| 73 var __v_24 = {}; |
| 74 try { |
| 75 (function() { |
| 76 var Debug = %GetDebugContext().Debug; |
| 77 |
| 78 function __f_0() {} |
| 79 for (var __v_0 = 0; __v_0 < 3; __v_0++) { |
| 80 var __v_2 = function() { |
| 81 a = 1; |
| 82 } |
| 83 Debug.setListener(__f_0); |
| 84 if (__v_0 < 2) Debug.setBreakPoint(__v_2); |
| 85 } |
| 86 })(); |
| 87 } catch (e) { |
| 88 print(); |
| 89 } |
OLD | NEW |