console.tq 610 Bytes
Newer Older
1 2 3 4 5
// 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 {
6 7
extern builtin ConsoleAssert(implicit context: Context)(
    JSFunction, JSAny, int32): JSAny;
8

9 10 11 12 13 14
javascript builtin FastConsoleAssert(
    js-implicit context: NativeContext, receiver: JSAny, newTarget: JSAny,
    target: JSFunction)(...arguments): JSAny {
  if (ToBoolean(arguments[0])) {
    return Undefined;
  } else {
15 16
    tail ConsoleAssert(
        target, newTarget, Convert<int32>(arguments.actual_count));
17 18
  }
}
19
}