You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught ReferenceError: p is not defined
at new DownsampleCalculator
This makes it challenging to use weblas as an external dependency when building a project that bundles or concatenates it with other scripts that have strict mode enabled.
It seems that if we patch a couple instances in weblas code, adding var before variable declarations, this should work: https://jsfiddle.net/cft3aqvu/
The text was updated successfully, but these errors were encountered:
Projector depends on Weblas, a 3rd party dependency that throws runtime
errors when run in a browser's strict mode:
waylonflinn/weblas#52
To workaround the error, this changes our Rollup config to generate output
files in non-strict mode. Manually checked that the standalone target now
works (errored with `p is not defined` before):
`blaze run tensorboard/plugins/projector/polymer3/vz_projector:standalone`
Running weblas in a browser's 'strict mode' will throw runtime errors.
Repro: see https://jsfiddle.net/u7by8azp/, created by pasting dist/weblas.js into a script with 'use strict' at the top.
Expected: no console errors in devtools
Actual:
This makes it challenging to use weblas as an external dependency when building a project that bundles or concatenates it with other scripts that have strict mode enabled.
It seems that if we patch a couple instances in weblas code, adding
var
before variable declarations, this should work:https://jsfiddle.net/cft3aqvu/
The text was updated successfully, but these errors were encountered: