// Copyright 2014 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.functionModule(stdlib,foreign,heap){"use asm";varMEM32=newstdlib.Int32Array(heap);functionfoo(i){i=i|0;return+MEM32[i>>2];}return{foo:foo};}varfoo=Module(this,{},newArrayBuffer(4)).foo;assertEquals(NaN,foo(-4));assertEquals(NaN,foo(4));