1// Copyright 2019 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 5namespace console { 6extern builtin ConsoleAssert(implicit context: Context)( 7 JSFunction, JSAny, int32): JSAny; 8 9javascript builtin FastConsoleAssert( 10 js-implicit context: NativeContext, receiver: JSAny, newTarget: JSAny, 11 target: JSFunction)(...arguments): JSAny { 12 if (ToBoolean(arguments[0])) { 13 return Undefined; 14 } else { 15 tail ConsoleAssert( 16 target, newTarget, Convert<int32>(arguments.actual_count)); 17 } 18} 19} 20