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
Consider an HTML page including two scripts 1.js and 2.js, where 1.js is
varx;
and 2.js is
alert(x);
Loading this page alerts undefined.
Assume we only normalize 1.js and leave 2.js in its original state. Loading the modified page then results in a ReferenceError since global variable x is neither declared nor defined.
To enable normalized and non-normalized code to work together, the normalization should preserve global variable declarations.
The text was updated successfully, but these errors were encountered:
Consider an HTML page including two scripts
1.js
and2.js
, where1.js
isand
2.js
isLoading this page alerts
undefined
.Assume we only normalize
1.js
and leave2.js
in its original state. Loading the modified page then results in aReferenceError
since global variablex
is neither declared nor defined.To enable normalized and non-normalized code to work together, the normalization should preserve global variable declarations.
The text was updated successfully, but these errors were encountered: