@jsenv/plugin-supervisor 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -689,12 +689,7 @@ window.__supervisor__ = (() => {
689
689
  };
690
690
  if (fileUrlSite.isInline) {
691
691
  // chrome
692
- if (Error.captureStackTrace && !isWebkitOrSafari) {
693
- if (exception.name === "SyntaxError") {
694
- // syntax error on inline script need line-1 for some reason
695
- decreaseLine();
696
- }
697
- }
692
+ if (Error.captureStackTrace && !isWebkitOrSafari) ;
698
693
  // firefox and webkit
699
694
  else if (exception.name === "SyntaxError") {
700
695
  if (exception.code === DYNAMIC_IMPORT_EXPORT_MISSING || exception.code === DYNAMIC_IMPORT_SYNTAX_ERROR) {
@@ -1402,7 +1402,7 @@ const jsenvPluginSupervisor = ({
1402
1402
  subtype: "inline",
1403
1403
  expectedType: type,
1404
1404
  isOriginalPosition: isOriginal,
1405
- specifierLine: line - 1,
1405
+ specifierLine: line,
1406
1406
  specifierColumn: column,
1407
1407
  specifier: inlineScriptUrl,
1408
1408
  contentType: "text/javascript",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-supervisor",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -655,10 +655,6 @@ window.__supervisor__ = (() => {
655
655
  if (fileUrlSite.isInline) {
656
656
  // chrome
657
657
  if (Error.captureStackTrace && !isWebkitOrSafari) {
658
- if (exception.name === "SyntaxError") {
659
- // syntax error on inline script need line-1 for some reason
660
- decreaseLine();
661
- }
662
658
  }
663
659
  // firefox and webkit
664
660
  else if (exception.name === "SyntaxError") {
@@ -254,7 +254,7 @@ export const jsenvPluginSupervisor = ({
254
254
  subtype: "inline",
255
255
  expectedType: type,
256
256
  isOriginalPosition: isOriginal,
257
- specifierLine: line - 1,
257
+ specifierLine: line,
258
258
  specifierColumn: column,
259
259
  specifier: inlineScriptUrl,
260
260
  contentType: "text/javascript",