[oden][oden-js] Notes on source maps
This commit is contained in:
parent
93d4e3eb91
commit
7a1bf5a19b
2 changed files with 10 additions and 4 deletions
|
|
@ -6437,7 +6437,7 @@ static int find_line_num(JSContext *ctx, JSFunctionBytecode *b,
|
|||
if (pc_value < pc)
|
||||
return line_num;
|
||||
line_num = new_line_num;
|
||||
}
|
||||
}
|
||||
return line_num;
|
||||
}
|
||||
|
||||
|
|
@ -6518,6 +6518,8 @@ static void build_backtrace(JSContext *ctx, JSValueConst error_obj,
|
|||
b = p->u.func.function_bytecode;
|
||||
backtrace_barrier = b->backtrace_barrier;
|
||||
if (b->has_debug) {
|
||||
/* TODO: SOURCEMAP: Indirect through the source map here if
|
||||
there is one. */
|
||||
line_num1 = find_line_num(ctx, b,
|
||||
sf->cur_pc - b->byte_code_buf - 1);
|
||||
atom_str = JS_AtomToCString(ctx, b->debug.filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue