blob: ac38e30c8267d450611b741593a5917aec60b1a8 [file] [log] [blame]
var findTypeForExpression = $vm.findTypeForExpression;
load("./driver/driver.js");
function wrapper() {
function foo(o) {
let variableName = o;
return variableName;
}
let o1 = new Number;
o1.__proto__ = null;
foo(o1);
let o2 = function() {}
foo(o2);
}
wrapper();
// ====== End test cases ======
var types = findTypeForExpression(wrapper, "variableName;");
assert(types.instructionTypeSet.displayTypeName === "Object", "'Object' should be our TOP.");