Index: test/mjsunit/debugPrint.js |
diff --git a/test/mjsunit/debugPrint.js b/test/mjsunit/debugPrint.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7c52b17f1fa60608db6a8be107c31ac4c4928807 |
--- /dev/null |
+++ b/test/mjsunit/debugPrint.js |
@@ -0,0 +1,29 @@ |
+// Copyright 2017 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// Flags: --allow-natives-syntax |
+ |
+var largeArray = []; |
+largeArray[0xFFFF00] = 123; |
+ |
+var objects = [ |
+ this, |
+ true, false, null, undefined, |
+ 1, -1, 1.1, -2.2, -0, 0, |
+ Infinity, -Infinity, NaN, |
+ "aasdfasdfasdfasdf", "a"+"b", |
+ {}, {1:1}, {a:1}, {1:1, 2:2}, Object.create(null), |
+ [], [{}, {}], [1, 1, 1], [1.1, 1.1, 1.1, 1.1, 2], largeArray, |
+ new Proxy({},{}), |
+ new Date(), new String(" a"), |
+ new Uint8Array(12), |
+ /asdf/, new RegExp(), |
+ Object.create, Object, Array, |
+ Symbol.iterator, |
+ [][Symbol.iterator](), |
+ new Map(), new Set(), |
+ (new Map()).entries(), (new Set()).entries() |
+ |
+]; |
+for (var o of objects) %DebugPrint(o); |