@@ -14,7 +14,7 @@ use magic_string::{GenerateDecodedMapOptions, MagicString};
14
14
use sentry:: types:: DebugId ;
15
15
use sourcemap:: SourceMap ;
16
16
17
- const CODE_SNIPPET_TEMPLATE : & str = r#"!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="__SENTRY_DEBUG_ID__")}catch(e){}}();"# ;
17
+ const CODE_SNIPPET_TEMPLATE : & str = r#"!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e. Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="__SENTRY_DEBUG_ID__")}catch(e){}}();"# ;
18
18
const DEBUGID_PLACEHOLDER : & str = "__SENTRY_DEBUG_ID__" ;
19
19
const DEBUGID_COMMENT_PREFIX : & str = "//# debugId" ;
20
20
@@ -329,7 +329,7 @@ something else"#;
329
329
330
330
let expected = r#"//# sourceMappingURL=fake1
331
331
332
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
332
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e. Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
333
333
some line
334
334
//# sourceMappingURL=fake2
335
335
//# sourceMappingURL=real
@@ -383,7 +383,7 @@ something else"#;
383
383
384
384
385
385
386
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
386
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e. Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
387
387
some line
388
388
//# sourceMappingURL=fake
389
389
//# sourceMappingURL=fake
@@ -430,7 +430,7 @@ something else"#;
430
430
431
431
// some other comment
432
432
"use strict";
433
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
433
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e. Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
434
434
rest of the line
435
435
'use strict';
436
436
some line
@@ -466,7 +466,7 @@ something else"#;
466
466
467
467
// some other comment
468
468
"use strict";
469
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
469
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e. Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000")}catch(e){}}();
470
470
rest of the line
471
471
(this.foo=this.bar||[]).push([[2],[function(e,t,n){"use strict"; […] }
472
472
some line
0 commit comments