With static-fns true, compiler will emit invocations of functions in the Math "namespace" with a conditional arity check or .call() because it does not know that the Math namespace is not not-native. Example with the fix function (advanced compilation, pseudo-names true):
With attached patch, the following is emitted instead:
With static-fns true, compiler will emit invocations of functions in the
Math
"namespace" with a conditional arity check or .call() because it does not know that the Math namespace is not not-native. Example with thefix
function (advanced compilation, pseudo-names true):With attached patch, the following is emitted instead: