{"size": 745, "ext": "js", "max_stars_repo_path": "implementation-contributed/v8/mjsunit/compiler/regress-4206.js", "max_stars_repo_name": "katemihalikova/test262", "max_stars_repo_stars_event_min_datetime": "2015-01-01T05:12:40.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T21:39:18.000Z", "max_issues_repo_path": "implementation-contributed/v8/mjsunit/compiler/regress-4206.js", "max_issues_repo_name": "katemihalikova/test262", "max_issues_repo_issues_event_min_datetime": "2015-01-30T05:33:07.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T16:17:21.000Z", "max_forks_repo_path": "implementation-contributed/v8/mjsunit/compiler/regress-4206.js", "max_forks_repo_name": "katemihalikova/test262", "max_forks_repo_forks_event_min_datetime": "2015-01-01T15:12:34.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-28T06:23:41.000Z"}
{"max_stars_count": 20995, "max_issues_count": 9469, "max_forks_count": 4523, "avg_line_length": 25.6896551724, "max_line_length": 73, "alphanum_fraction": 0.6013422819}
// 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.

function Module(stdlib) {
  "use asm";
  function TernaryMin(a, b) {
    a=+(a);
    b=+(b);
    return (+((a < b) ? a : b));
  }
  function TernaryMax(a, b) {
    a=+(a);
    b=+(b);
    return (+((b < a) ? a : b));
  }
  return { TernaryMin: TernaryMin,
           TernaryMax: TernaryMax };
}
var min = Module(this).TernaryMin;
var max = Module(this).TernaryMax;

assertEquals(0.0, min(-0.0, 0.0));
assertEquals(0.0, min(NaN, 0.0));
assertEquals(-0.0, min(NaN, -0.0));
assertEquals(-0.0, max(0.0, -0.0));
assertEquals(0.0, max(NaN, 0.0));
assertEquals(-0.0, max(NaN, -0.0));
