{"size": 973, "ext": "js", "max_stars_repo_path": "test/wasm/polyinline.js", "max_stars_repo_name": "Taritsyn/ChakraCore", "max_stars_repo_stars_event_min_datetime": "2016-01-13T17:33:19.000Z", "max_stars_repo_stars_event_max_datetime": "2019-05-06T19:55:36.000Z", "max_issues_repo_path": "test/wasm/polyinline.js", "max_issues_repo_name": "Taritsyn/ChakraCore", "max_issues_repo_issues_event_min_datetime": "2016-01-13T17:57:02.000Z", "max_issues_repo_issues_event_max_datetime": "2019-05-04T15:41:54.000Z", "max_forks_repo_path": "test/wasm/polyinline.js", "max_forks_repo_name": "Taritsyn/ChakraCore", "max_forks_repo_forks_event_min_datetime": "2016-01-13T17:54:57.000Z", "max_forks_repo_forks_event_max_datetime": "2019-04-29T18:16:27.000Z"}
{"max_stars_count": 8664, "max_issues_count": 5058, "max_forks_count": 1367, "avg_line_length": 34.75, "max_line_length": 106, "alphanum_fraction": 0.5056526208}
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft Corporation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

const buf = WebAssembly.wabt.convertWast2Wasm(`
(module
  (func (export "min") (param f64 f64) (result f64)
    (f64.min (get_local 0) (get_local 1))
  )

  (func (export "max") (param f64 f64) (result f64)
    (f64.max (get_local 0) (get_local 1))
  )
)`);
const view = new Uint8Array(buf);
view[buf.byteLength - 1] = 6;
var mod = new WebAssembly.Module(buf);
var {min, max} = new WebAssembly.Instance(mod).exports;

function foo(fn) {
  fn();
}

try {foo(min);} catch (e) {}
try {foo(max);} catch (e) {}
try {foo(min);} catch (e) {}
print("Pass");