Make exception case for require kernel obvious.

This commit is contained in:
Chad Weider 2012-09-03 14:41:26 -07:00
parent 02c22d7b89
commit 6e796eb5fb

View file

@ -168,11 +168,9 @@ require.setGlobalKeyPath("require");\n\
buffer.push(KERNEL_BOOT);
buffer.push('<\/script>');
} else {
file = KERNEL_SOURCE;
buffer.push('<script type="application/javascript" src="' + KERNEL_SOURCE + '"><\/script>');
buffer.push('<script type="text/javascript">');
buffer.push(KERNEL_BOOT);
buffer.push('<\/script>');
// Remotely src'd script tag will not work in IE; it must be embedded, so
// throw an error if it is not.
throw new Error("Require script could not be embedded.");
}
}
function pushScriptsTo(buffer) {