Certain keywords are not allowed to be used as var names according to ECMA spec in strict mode code. One such keyword is package.
Livepack correctly handles this. In this function, eval() will execute in strict mode, so the var package is not accessible to it. Therefore Livepack does not capture package as an external var of the function.
Certain keywords are not allowed to be used as var names according to ECMA spec in strict mode code. One such keyword is
package
.Livepack correctly handles this. In this function,
eval()
will execute in strict mode, so the varpackage
is not accessible to it. Therefore Livepack does not capturepackage
as an external var of the function.So this works fine, but there's currently no test for it.