montagejs/montage — pull request #1006 by kriskowal (2012-09-12 16:23:15+00:00)
Title: Various bug fixes exposed by Mop and CSP

After optimizing an application and running it as a Chrome extension
with a no-eval Content Security Policy, these fixes were necessary.

- Bug in bootstrapping, when eval is forbidden, while attempting to
infer the global variable in the most general fashion.
- Bug in bootstrapping, where script injected templates are not
recognized as templates.
- Bug (fixed upstream) where the module loader fails to recognize that
a package is using script-injection form.
- Bug in deserializer where names are not properly unpacked from the
"package" or "object" reference.
- Enhancement, module display names can be based on package name
instead of location.