summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/console.js
blob: f78afc69dd50781e5679123e10b12a3282c251f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2016 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.

console.assert(true);
console.assert("yes");
assertThrows(() => console.assert(false), Error);
assertThrows(() => console.assert(""), Error);
assertThrows(() => console.assert(0), Error);

let args = ["", {}, [], this, Array, 1, 1.4, true, false];

console.log(...args);
console.error(...args);
console.warn(...args);
console.info(...args);
console.debug(...args);

console.time();
console.timeEnd();

console.time("a");
console.timeEnd("a");

console.timeStamp();
args.forEach(each => console.timeStamp(each));

console.trace();