Simplify sourceURL code and ensure source maps work avoid compat issues.

Former-commit-id: 5b64703eaebc65c443d6b9d3699d448c253e70c1
This commit is contained in:
John-David Dalton
2013-01-22 21:51:10 -08:00
parent 607abf89f7
commit 6774d46a6f
5 changed files with 6 additions and 43 deletions

View File

@@ -143,23 +143,6 @@
*/
var noCharByIndex = ('x'[0] + Object('x')[0]) != 'xx';
/**
* Detect if sourceURL syntax is usable without erroring:
*
* The JS engine embedded in Adobe products will throw a syntax error when
* it encounters a single line comment beginning with the `@` symbol.
*
* The JS engine in Narwhal will generate the function `function anonymous(){//}`
* and throw a syntax error.
*
* Avoid comments beginning `@` symbols in IE because they are part of its
* non-standard conditional compilation support.
* http://msdn.microsoft.com/en-us/library/121hztk3(v=vs.94).aspx
*/
try {
var useSourceURL = (Function('//@')(), !isIeOpera);
} catch(e) { }
/** Used to determine if values are of the language type Object */
var objectTypes = {
'boolean': false,