relazify.js (366B)
1 // |jit-test| skip-if: isLcovEnabled() 2 3 // Self-hosted builtins use a special form of lazy function, but still can be 4 // delazified in some cases. 5 6 let obj = []; 7 let fun = obj.map; 8 assertEq(isLazyFunction(fun), true); 9 10 // Delazify 11 fun.call(obj, x => x); 12 assertEq(isLazyFunction(fun), false); 13 14 // Relazify 15 relazifyFunctions(obj); 16 assertEq(isLazyFunction(fun), true);