Skip to content

Commit 045a4f4

Browse files
authored
js/gen_sourcemaps: Throw proper error
When using a string, we throw away a lot of informations like the stack trace.
1 parent 87535d4 commit 045a4f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vm/js/bin/gen_sourcemap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function toNode(chunk) {
1717
return chunk.map(function(c) {return toNode(c)});
1818
} else {
1919
console.error(chunk);
20-
throw "incorrect chunk";
20+
throw new Error("incorrect chunk");
2121
}
2222
}
2323

0 commit comments

Comments
 (0)