/
v8.ts
90 lines (88 loc) · 2.13 KB
/
v8.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
// Copyright Joyent and Node contributors. All rights reserved. MIT license.
import { notImplemented } from "./_utils.ts";
export function cachedDataVersionTag() {
notImplemented("v8.cachedDataVersionTag");
}
export function getHeapCodeStatistics() {
notImplemented("v8.getHeapCodeStatistics");
}
export function getHeapSnapshot() {
notImplemented("v8.getHeapSnapshot");
}
export function getHeapSpaceStatistics() {
notImplemented("v8.getHeapSpaceStatistics");
}
export function getHeapStatistics() {
notImplemented("v8.getHeapStatistics");
}
export function setFlagsFromString() {
notImplemented("v8.setFlagsFromString");
}
export function stopCoverage() {
notImplemented("v8.stopCoverage");
}
export function takeCoverage() {
notImplemented("v8.takeCoverage");
}
export function writeHeapSnapshot() {
notImplemented("v8.writeHeapSnapshot");
}
export function serialize() {
notImplemented("v8.serialize");
}
export function deserialize() {
notImplemented("v8.deserialize");
}
export class Serializer {
constructor() {
notImplemented("v8.Serializer.prototype.constructor");
}
}
export class Deserializer {
constructor() {
notImplemented("v8.Deserializer.prototype.constructor");
}
}
export class DefaultSerializer {
constructor() {
notImplemented("v8.DefaultSerializer.prototype.constructor");
}
}
export class DefaultDeserializer {
constructor() {
notImplemented("v8.DefaultDeserializer.prototype.constructor");
}
}
export const promiseHooks = {
onInit() {
notImplemented("v8.promiseHooks.onInit");
},
onSettled() {
notImplemented("v8.promiseHooks.onSetttled");
},
onBefore() {
notImplemented("v8.promiseHooks.onBefore");
},
createHook() {
notImplemented("v8.promiseHooks.createHook");
},
};
export default {
cachedDataVersionTag,
getHeapCodeStatistics,
getHeapSnapshot,
getHeapSpaceStatistics,
getHeapStatistics,
setFlagsFromString,
stopCoverage,
takeCoverage,
writeHeapSnapshot,
serialize,
deserialize,
Serializer,
Deserializer,
DefaultSerializer,
DefaultDeserializer,
promiseHooks,
};