summaryrefslogtreecommitdiff
path: root/runtime/js/40_error_stack.js
blob: 4269bf1acf9dba2f4695c1c7b5eeb45cc9fb751c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
"use strict";

((window) => {
  const core = window.Deno.core;

  function opFormatDiagnostics(diagnostics) {
    return core.opSync("op_format_diagnostic", diagnostics);
  }

  window.__bootstrap.errorStack = {
    opFormatDiagnostics,
  };
})(this);