kayahr / console-shim

Browser console compatibility shim for legacy JavaScript engines
MIT License
86 stars 16 forks source link

'use strict'; in global scope #10

Closed sigod closed 10 years ago

sigod commented 10 years ago

I just looked at minified version and noticed that 'use strict'; lies in global scope. Wouldn't it break something if after that appears some legacy code?

kayahr commented 10 years ago

'use strict' in global scope of a file only applies to this single file. No other files. If someone takes the code from this file and copies it into some other file then this someone is responsible for removing the 'use strict' line if necessary.