Skip to content

Minified/Uglified Issue #1

@chriscoyier

Description

@chriscoyier

Say you take the entire https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react.min.js and instrument it with what is here.

You'll get some invalid JS. Here's a formatted-ish chunk of the broken JS:

if (window.CP.shouldStopExecution(22)){break;}
  d=g.value,y=h+r(d,x++),v+=o(d,y,n,i);}

// Invalid right here.
window.CP.exitedLoop(22);

else for(;!(g=E.next()).done;){if (window.CP.shouldStopExecution(23)){break;}var _=g.value;_&&(d=_[1],y=h+c.escape(_[0])+f+r(d,0),v+=o(d,y,n,i))}
window.CP.exitedLoop(23);
}

I added the stuff required for testing as 8-in.js and 8-out-broken.js.

You can run node output-checker.js to instrument and see results quickly.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions