summaryrefslogtreecommitdiff
path: root/runtime/js/40_error_stack.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/40_error_stack.js')
-rw-r--r--runtime/js/40_error_stack.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/js/40_error_stack.js b/runtime/js/40_error_stack.js
index e73975044..c8f2aff5a 100644
--- a/runtime/js/40_error_stack.js
+++ b/runtime/js/40_error_stack.js
@@ -8,6 +8,10 @@
return core.opSync("op_format_diagnostic", diagnostics);
}
+ function opFormatFileName(location) {
+ return core.opSync("op_format_file_name", location);
+ }
+
function opApplySourceMap(location) {
const res = core.opSync("op_apply_source_map", location);
return {
@@ -18,7 +22,8 @@
}
window.__bootstrap.errorStack = {
- opApplySourceMap,
opFormatDiagnostics,
+ opFormatFileName,
+ opApplySourceMap,
};
})(this);