Ensure running in IE if concated with other files that enable conditional compilation /*@cc_on @/`.

Former-commit-id: cf2d9c01ce92b8b85149116d48145bc4342471a4
This commit is contained in:
Jay Phelps
2012-07-16 16:35:35 -07:00
committed by John-David Dalton
parent fcede42903
commit 0f8bae950e

View File

@@ -141,8 +141,10 @@
/** Detect if sourceURL syntax is usable without erroring */
try {
// Adobe's and Narwhal's JS engines will error
var useSourceURL = (Function('//@')(), true);
// Adobe's and Narwhal's JS engines will error. IE 8/9/etc also evaluate
// @ symbols as part of a non-standard conditional include system, so it
// parses /a/a as a malformed regular expression, so we know to exclude them.
var useSourceURL = (Function('//@/a/a')(), true);
} catch(e){ }
/**