mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Ensure running in IE if concated with other files that enable conditional compilation /*@cc_on @/`.
Former-commit-id: cf2d9c01ce92b8b85149116d48145bc4342471a4
This commit is contained in:
committed by
John-David Dalton
parent
fcede42903
commit
0f8bae950e
@@ -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){ }
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user