mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27: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 */
|
/** Detect if sourceURL syntax is usable without erroring */
|
||||||
try {
|
try {
|
||||||
// Adobe's and Narwhal's JS engines will error
|
// Adobe's and Narwhal's JS engines will error. IE 8/9/etc also evaluate
|
||||||
var useSourceURL = (Function('//@')(), true);
|
// @ 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){ }
|
} catch(e){ }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user