// Copyright 2015 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: --expose-natives-as natives// Test the MaxSimple and MinSimple internal methods in runtime.jsvarMaxSimple=natives.ImportNow("MaxSimple");varMinSimple=natives.ImportNow("MinSimple");functioncheckEvaluations(target){varevaluations=0;varobservedNumber={valueOf:function(){evaluations++;return0;}};target(observedNumber,observedNumber);returnevaluations;}assertEquals(1,MaxSimple(-1,1));assertEquals(2,checkEvaluations(MaxSimple));assertEquals(-1,MinSimple(-1,1));assertEquals(2,checkEvaluations(MinSimple));