1// Copyright 2014 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
5(function Module(stdlib, foreign, heap) {
6  "use asm";
7  // This is not valid asm.js, but should nevertheless work.
8  var MEM = new Uint8ClampedArray(heap);
9  function foo(i) { MEM[0] = 1; }
10  return {foo: foo};
11})(this, {}, new ArrayBuffer(64 * 1024)).foo();
12