Welcome to mirror list, hosted at ThFree Co, Russian Federation.

console.tq « builtins « src « v8 « deps - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 48d5d08abc4f87f4f05b5e3444753a172221d985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2019 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.

namespace console {
  extern builtin ConsoleAssert(implicit context:
                                   Context)(JSFunction, JSAny, int32): JSAny;

  javascript builtin FastConsoleAssert(
      js-implicit context: NativeContext, receiver: JSAny, newTarget: JSAny,
      target: JSFunction)(...arguments): JSAny {
    if (ToBoolean(arguments[0])) {
      return Undefined;
    } else {
      tail ConsoleAssert(target, newTarget, Convert<int32>(arguments.length));
    }
  }
}