support custom indentation (#5318)

closes #50
This commit is contained in:
Alex Lam S.L
2022-01-28 00:38:11 +00:00
committed by GitHub
parent 3693bde2dd
commit e4a91a89e0
4 changed files with 118 additions and 16 deletions

View File

@@ -55,14 +55,6 @@ function find_if(func, array) {
for (var i = array.length; --i >= 0;) if (func(array[i])) return array[i];
}
function repeat_string(str, i) {
if (i <= 0) return "";
if (i == 1) return str;
var d = repeat_string(str, i >> 1);
d += d;
return i & 1 ? d + str : d;
}
function configure_error_stack(fn) {
Object.defineProperty(fn.prototype, "stack", {
get: function() {