Files
bun.sh/src/bun.js/resolve_message.classes.ts
Jarred Sumner ca89087684 feat: Make using await inside a non-async function have a helpful error message (#7690)
* Update fs.test.ts

* Make using `await` inside a non-async function have a good error

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-12-15 18:04:40 -08:00

102 lines
1.8 KiB
TypeScript

import { define } from "../codegen/class-definitions";
export default [
define({
name: "ResolveMessage",
construct: true,
finalize: true,
configurable: false,
klass: {},
JSType: "0b11101110",
proto: {
message: {
getter: "getMessage",
cache: true,
},
code: {
getter: "getCode",
cache: true,
},
name: {
value: "ResolveMessage",
},
level: {
getter: "getLevel",
cache: true,
},
referrer: {
getter: "getReferrer",
cache: true,
},
specifier: {
getter: "getSpecifier",
cache: true,
},
importKind: {
getter: "getImportKind",
cache: true,
},
position: {
getter: "getPosition",
cache: true,
},
["@@toPrimitive"]: {
fn: "toPrimitive",
length: 1,
},
["toString"]: {
fn: "toString",
length: 0,
},
["toJSON"]: {
fn: "toJSON",
length: 0,
},
},
}),
define({
name: "BuildMessage",
construct: true,
finalize: true,
configurable: false,
klass: {},
JSType: "0b11101110",
proto: {
message: {
getter: "getMessage",
cache: true,
},
name: {
value: "BuildMessage",
},
level: {
getter: "getLevel",
cache: true,
},
position: {
getter: "getPosition",
cache: true,
},
notes: {
getter: "getNotes",
cache: true,
},
["@@toPrimitive"]: {
fn: "toPrimitive",
length: 1,
},
["toString"]: {
fn: "toString",
length: 0,
},
["toJSON"]: {
fn: "toJSON",
length: 0,
},
},
}),
];