mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 20:39:05 +00:00
* 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>
102 lines
1.8 KiB
TypeScript
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,
|
|
},
|
|
},
|
|
}),
|
|
];
|