Testing handwritten asm.js

function Not(stdlib, foreign, heap) {
	"use asm";

	function notIt(integer) {
			integer = integer|0;
			
			return (!integer)|0;
	}
	
	return { notIt: notIt};
}

var not = Not(window);

//outputs 0, 1, 0, 0
//as expected
console.log(not.notIt(1), not.notIt(0), not.notIt(2), not.notIt(-1));