Skip to content

Commit

Permalink
Drop non-standard Error properties
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Dec 16, 2023
1 parent 5cbf872 commit 8934101
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions quickjs-atom.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ DEF(await, "await")
DEF(empty_string, "")
/* identifiers */
DEF(length, "length")
DEF(fileName, "fileName")
DEF(lineNumber, "lineNumber")
DEF(columnNumber, "columnNumber")
DEF(message, "message")
DEF(cause, "cause")
DEF(errors, "errors")
Expand Down
6 changes: 0 additions & 6 deletions quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -6375,12 +6375,6 @@ static void build_backtrace(JSContext *ctx, JSValue error_obj,
if (line_num != -1)
dbuf_printf(&dbuf, ":%d:%d", line_num, col_num);
dbuf_putc(&dbuf, '\n');
str = JS_NewString(ctx, filename);
JS_DefinePropertyValue(ctx, error_obj, JS_ATOM_fileName, str, flags);
JS_DefinePropertyValue(ctx, error_obj, JS_ATOM_lineNumber,
js_int32(line_num), flags);
JS_DefinePropertyValue(ctx, error_obj, JS_ATOM_columnNumber,
js_int32(col_num), flags);
if (backtrace_flags & JS_BACKTRACE_FLAG_SINGLE_LEVEL)
goto done;
}
Expand Down

0 comments on commit 8934101

Please sign in to comment.