@casual-simulation/aux-runtime 3.2.7-alpha.6226622763

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/LICENSE.txt +21 -0
  2. package/README.md +82 -0
  3. package/index.d.ts +26 -0
  4. package/index.js +26 -0
  5. package/index.js.map +1 -0
  6. package/package.json +79 -0
  7. package/runtime/AuxCompiler.d.ts +258 -0
  8. package/runtime/AuxCompiler.js +722 -0
  9. package/runtime/AuxCompiler.js.map +1 -0
  10. package/runtime/AuxDevice.d.ts +28 -0
  11. package/runtime/AuxDevice.js +2 -0
  12. package/runtime/AuxDevice.js.map +1 -0
  13. package/runtime/AuxGlobalContext.d.ts +572 -0
  14. package/runtime/AuxGlobalContext.js +606 -0
  15. package/runtime/AuxGlobalContext.js.map +1 -0
  16. package/runtime/AuxLibrary.d.ts +2566 -0
  17. package/runtime/AuxLibrary.js +10210 -0
  18. package/runtime/AuxLibrary.js.map +1 -0
  19. package/runtime/AuxLibraryDefinitions.def +12288 -0
  20. package/runtime/AuxPartitionRealtimeEditModeProvider.d.ts +9 -0
  21. package/runtime/AuxPartitionRealtimeEditModeProvider.js +21 -0
  22. package/runtime/AuxPartitionRealtimeEditModeProvider.js.map +1 -0
  23. package/runtime/AuxRealtimeEditModeProvider.d.ts +35 -0
  24. package/runtime/AuxRealtimeEditModeProvider.js +34 -0
  25. package/runtime/AuxRealtimeEditModeProvider.js.map +1 -0
  26. package/runtime/AuxResults.d.ts +77 -0
  27. package/runtime/AuxResults.js +6 -0
  28. package/runtime/AuxResults.js.map +1 -0
  29. package/runtime/AuxRuntime.d.ts +252 -0
  30. package/runtime/AuxRuntime.js +2688 -0
  31. package/runtime/AuxRuntime.js.map +1 -0
  32. package/runtime/AuxRuntimeDynamicImports.d.ts +14 -0
  33. package/runtime/AuxRuntimeDynamicImports.js +24 -0
  34. package/runtime/AuxRuntimeDynamicImports.js.map +1 -0
  35. package/runtime/AuxVersion.d.ts +39 -0
  36. package/runtime/AuxVersion.js +2 -0
  37. package/runtime/AuxVersion.js.map +1 -0
  38. package/runtime/CasualOSError.d.ts +37 -0
  39. package/runtime/CasualOSError.js +25 -0
  40. package/runtime/CasualOSError.js.map +1 -0
  41. package/runtime/CompiledBot.d.ts +107 -0
  42. package/runtime/CompiledBot.js +44 -0
  43. package/runtime/CompiledBot.js.map +1 -0
  44. package/runtime/PerformanceNowPolyfill.d.ts +1 -0
  45. package/runtime/PerformanceNowPolyfill.js +8 -0
  46. package/runtime/PerformanceNowPolyfill.js.map +1 -0
  47. package/runtime/RecordsEvents.d.ts +1025 -0
  48. package/runtime/RecordsEvents.js +449 -0
  49. package/runtime/RecordsEvents.js.map +1 -0
  50. package/runtime/RuntimeBot.d.ts +177 -0
  51. package/runtime/RuntimeBot.js +732 -0
  52. package/runtime/RuntimeBot.js.map +1 -0
  53. package/runtime/RuntimeEvents.d.ts +126 -0
  54. package/runtime/RuntimeEvents.js +29 -0
  55. package/runtime/RuntimeEvents.js.map +1 -0
  56. package/runtime/RuntimeStateVersion.d.ts +23 -0
  57. package/runtime/RuntimeStateVersion.js +22 -0
  58. package/runtime/RuntimeStateVersion.js.map +1 -0
  59. package/runtime/Transpiler.d.ts +174 -0
  60. package/runtime/Transpiler.js +611 -0
  61. package/runtime/Transpiler.js.map +1 -0
  62. package/runtime/Utils.d.ts +44 -0
  63. package/runtime/Utils.js +253 -0
  64. package/runtime/Utils.js.map +1 -0
  65. package/runtime/index.d.ts +13 -0
  66. package/runtime/index.js +13 -0
  67. package/runtime/index.js.map +1 -0
  68. package/runtime/test/TestScriptBotFactory.d.ts +16 -0
  69. package/runtime/test/TestScriptBotFactory.js +107 -0
  70. package/runtime/test/TestScriptBotFactory.js.map +1 -0
package/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Casual Simulation, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,82 @@
1
+ # AUX Common
2
+
3
+ [![npm (scoped)](https://img.shields.io/npm/v/@casual-simulation/aux-common.svg)](https://www.npmjs.com/package/@casual-simulation/aux-common)
4
+
5
+ A library that contains common operations needed to modify and understand AUX files.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ $ npm install @casual-simulation/aux-common
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ #### Calculate a formula for some bots
16
+
17
+ ```typescript
18
+ import {
19
+ createBot,
20
+ createCalculationContext,
21
+ calculateFormulaValue,
22
+ } from '@casual-simulation/aux-common';
23
+
24
+ const file1 = createBot('test1', {
25
+ quantity: 10,
26
+ });
27
+ const file2 = createBot('test2', {
28
+ quantity: 5,
29
+ });
30
+ const file3 = createBot('test3', {
31
+ quantity: 5,
32
+ });
33
+
34
+ const context = createCalculationContext([file1, file2, file3]);
35
+
36
+ const formula = '=math.sum(getBotTagValues("#quantity"))';
37
+ const result = calculateFormulaValue(context, formula);
38
+
39
+ console.log(result);
40
+
41
+ // Outputs:
42
+ // 20
43
+ ```
44
+
45
+ #### Calculate events for an action script
46
+
47
+ ```typescript
48
+ import {
49
+ createBot,
50
+ createCalculationContext,
51
+ calculateFormulaEvents,
52
+ } from '@casual-simulation/aux-common';
53
+
54
+ const state = {
55
+ test1: createBot('test1', {
56
+ quantity: 10,
57
+ }),
58
+ test2: createBot('test2', {
59
+ quantity: 5,
60
+ }),
61
+ test3: createBot('test3', {
62
+ quantity: 5,
63
+ }),
64
+ };
65
+
66
+ const formula = `
67
+ let total = math.sum(getBotTagValues("#quantity"));
68
+ player.toast("The total is " + total);
69
+ `;
70
+ const events = calculateFormulaEvents(state, formula);
71
+
72
+ for (let event of events) {
73
+ if (event.type === 'local') {
74
+ if (event.name === 'show_toast') {
75
+ console.log('[Toast]', event.message);
76
+ }
77
+ }
78
+ }
79
+
80
+ // Outputs:
81
+ // [Toast] The total is 5
82
+ ```
package/index.d.ts ADDED
@@ -0,0 +1,26 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2019 Casual Simulation, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ * @license MIT
24
+ */
25
+ export * from './runtime';
26
+ //# sourceMappingURL=index.d.ts.map
package/index.js ADDED
@@ -0,0 +1,26 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2019 Casual Simulation, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ * @license MIT
24
+ */
25
+ export * from './runtime';
26
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,cAAc,WAAW,CAAC"}
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "@casual-simulation/aux-runtime",
3
+ "version": "3.2.7-alpha.6226622763",
4
+ "description": "Runtime for AUX projects",
5
+ "main": "index.js",
6
+ "types": "index.d.ts",
7
+ "module": "index",
8
+ "scripts": {
9
+ "watch": "tsc --build --watch",
10
+ "watch:player": "npm run watch",
11
+ "build": "echo \"Nothing to do.\"",
12
+ "test": "jest",
13
+ "test:watch": "jest --watchAll"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/casual-simulation/casualos.git"
18
+ },
19
+ "keywords": [
20
+ "aux",
21
+ "so4",
22
+ "realtime",
23
+ "crdt"
24
+ ],
25
+ "author": "Casual Simulation, Inc.",
26
+ "license": "MIT",
27
+ "bugs": {
28
+ "url": "https://github.com/casual-simulation/casualos/issues"
29
+ },
30
+ "homepage": "https://github.com/casual-simulation/casualos#readme",
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "dependencies": {
35
+ "@casual-simulation/aux-common": "^3.2.7-alpha.6226622763",
36
+ "@casual-simulation/aux-records": "^3.2.7-alpha.6226622763",
37
+ "@casual-simulation/crypto": "^3.2.0",
38
+ "@casual-simulation/engine262": "0.0.1-4de2170374e22761996e46eb1362f4496ee57f8f",
39
+ "@casual-simulation/error-stack-parser": "^2.0.7",
40
+ "@casual-simulation/expect": "^3.1.28",
41
+ "@casual-simulation/fast-json-stable-stringify": "^3.1.11",
42
+ "@casual-simulation/js-interpreter": "^3.1.28",
43
+ "@casual-simulation/stacktrace": "^3.1.11",
44
+ "@casual-simulation/three": "^0.140.3",
45
+ "@tweenjs/tween.js": "18.6.0",
46
+ "@types/acorn": "^4.0.6",
47
+ "@types/estraverse": "^5.1.1",
48
+ "@types/uuid": "^8.3.1",
49
+ "acorn": "^8.0.1",
50
+ "acorn-jsx": "^5.3.2",
51
+ "astring": "1.7.5",
52
+ "estraverse": "^5.2.0",
53
+ "expect": "27.3.1",
54
+ "hash.js": "1.1.7",
55
+ "htm": "3.1.0",
56
+ "lib0": "0.2.49",
57
+ "lru-cache": "^5.1.1",
58
+ "luxon": "2.3.0",
59
+ "preact": "10.10.1",
60
+ "rxjs": "7.5.7",
61
+ "seedrandom": "3.0.5",
62
+ "stackframe": "^1.2.0",
63
+ "uuid": "^8.3.2",
64
+ "yjs": "13.5.41"
65
+ },
66
+ "devDependencies": {
67
+ "benchmark": "2.1.4",
68
+ "platform": "1.3.5"
69
+ },
70
+ "files": [
71
+ "/README.md",
72
+ "/LICENSE.txt",
73
+ "**/*.js",
74
+ "**/*.js.map",
75
+ "**/*.d.ts",
76
+ "**/*.def"
77
+ ],
78
+ "gitHead": "90c8d333924255b93b9654dc100fc74181b6138b"
79
+ }
@@ -0,0 +1,258 @@
1
+ /// <reference types="node" />
2
+ import { CodeLocation, TranspilerResult } from './Transpiler';
3
+ import type { Breakpoint, ConstructedFunction, Interpreter, InterpreterContinuation, InterpreterStop, PossibleBreakpointLocation } from '@casual-simulation/js-interpreter';
4
+ /**
5
+ * A symbol that identifies a function as having been compiled using the AuxCompiler.
6
+ */
7
+ export declare const COMPILED_SCRIPT_SYMBOL: unique symbol;
8
+ /**
9
+ * The symbol that is used to tag specific functions as interpretable.
10
+ */
11
+ export declare const INTERPRETABLE_FUNCTION: unique symbol;
12
+ /**
13
+ * The symbol that is used to tag function modules with the metadata for a function.
14
+ */
15
+ export declare const FUNCTION_METADATA: unique symbol;
16
+ /**
17
+ * Creates a new interpretable function based on the given function.
18
+ * @param interpretableFunc
19
+ */
20
+ export declare function createInterpretableFunction<TArg extends Array<any>, R>(interpretableFunc: (...args: TArg) => Generator<any, R, any>): {
21
+ (...args: TArg): R;
22
+ [INTERPRETABLE_FUNCTION]: (...args: TArg) => Generator<any, R, any>;
23
+ };
24
+ /**
25
+ * Sets the INTERPRETABLE_FUNCTION property on the given object (semantically a function) to the given interpretable version and returns the object.
26
+ * @param interpretableFunc The version of the function that should be used as the interpretable version of the function.
27
+ * @param normalFunc The function that should be tagged.
28
+ */
29
+ export declare function tagAsInterpretableFunction<T, N>(interpretableFunc: T, normalFunc: N): N & {
30
+ [INTERPRETABLE_FUNCTION]: T;
31
+ };
32
+ /**
33
+ * Determines if the given object has been tagged with the GENERATOR_FUNCTION_TAG.
34
+ * @param obj The object.
35
+ */
36
+ export declare function isInterpretableFunction(obj: unknown): boolean;
37
+ /**
38
+ * Gets the interpretable version of the given function.
39
+ */
40
+ export declare function getInterpretableFunction<T extends Function>(obj: unknown): T;
41
+ /**
42
+ * Defines a class that can compile scripts and formulas
43
+ * into functions.
44
+ */
45
+ export declare class AuxCompiler {
46
+ private _transpiler;
47
+ private _functionCache;
48
+ /**
49
+ * The offset that should be applied to error line numbers when calculating their original
50
+ * position. Needed because Node.js Windows produces different line numbers than Mac/Linux.
51
+ *
52
+ * Node.js versions greater than v12.14.0 have an issue with identifying the correct line number
53
+ * for errors and stack traces. This issue is fixed in Node.js v14 and later (possibly also fixed in v13 but I didn't check that).
54
+ */
55
+ functionErrorLineOffset: number;
56
+ /**
57
+ * Calculates the "original" stack trace that the given error occurred at
58
+ * within the given function.
59
+ * Returns null if the original stack trace was unable to be determined.
60
+ * @param functionNameMap A map of function names to their scripts.
61
+ * @param error The error that occurred.
62
+ */
63
+ calculateOriginalStackTrace(functionNameMap: Map<string, AuxCompiledScript>, error: Error): string;
64
+ private _calculateInterpreterErrorOriginalStackTrace;
65
+ private _calculateNativeErrorOriginalStackTrace;
66
+ /**
67
+ * Calculates the original location within the given function for the given location.
68
+ * The returned location uses zero-based line and column numbers.
69
+ * @param func The function.
70
+ * @param location The location. Line and column numbers are one-based.
71
+ */
72
+ calculateOriginalLineLocation(func: AuxCompiledScript, location: CodeLocation): CodeLocation;
73
+ /**
74
+ * Calculates the final location within the given function for the given location.
75
+ * @param func The function.
76
+ * @param location The location. Line and column numbers are zero based.
77
+ */
78
+ calculateFinalLineLocation(func: AuxCompiledScript, location: CodeLocation): CodeLocation;
79
+ /**
80
+ * Compiles the given script into a function.
81
+ * @param script The script to compile.
82
+ * @param options The options that should be used to compile the script.
83
+ */
84
+ compile<T>(script: string, options?: AuxCompileOptions<T>): AuxCompiledScript;
85
+ /**
86
+ * Finds the line number information for a function created with this compiler using the
87
+ * given stack trace and metadata.
88
+ * @param stackTrace The stack trace.
89
+ * @param metadata The metadata.
90
+ */
91
+ findLineInfo(stackTrace: NodeJS.CallSite[], metadata: AuxScriptMetadata): LineInfo;
92
+ /**
93
+ * Sets the given breakpoint.
94
+ * @param breakpoint The breakpoint that should be set.
95
+ */
96
+ setBreakpoint(breakpoint: AuxCompilerBreakpoint): void;
97
+ listPossibleBreakpoints(func: AuxCompiledScript, interpreter: Interpreter): PossibleBreakpointLocation[];
98
+ private _parseScript;
99
+ private _compileFunction;
100
+ private _buildFunction;
101
+ private __constructFunction;
102
+ }
103
+ /**
104
+ * Parses the line and column numbers from the the given syntax error, transforms them with the given function,
105
+ * and returns a new syntax error that contains the new location. Returns null if the line and column numbers could not be parsed.
106
+ * @param error The error to transform.
107
+ * @param transform The function that should be used to transform the errors.
108
+ * @returns
109
+ */
110
+ export declare function replaceSyntaxErrorLineNumber(error: SyntaxError, transform: (location: CodeLocation) => CodeLocation): SyntaxError;
111
+ /**
112
+ * A script that has been compiled.
113
+ */
114
+ export interface AuxCompiledScript {
115
+ (...args: any[]): any;
116
+ [INTERPRETABLE_FUNCTION]: ((...args: any[]) => Generator<InterpreterStop, any, InterpreterContinuation>) | null;
117
+ /**
118
+ * The metadata for the script.
119
+ */
120
+ metadata: AuxScriptMetadata;
121
+ }
122
+ /**
123
+ * Line information that has been calculated from a stack trace.
124
+ */
125
+ export interface LineInfo {
126
+ /**
127
+ * The line number.
128
+ */
129
+ line: number | null;
130
+ /**
131
+ * The column number.
132
+ */
133
+ column: number | null;
134
+ }
135
+ /**
136
+ * Metadata about the script.
137
+ */
138
+ export interface AuxScriptMetadata {
139
+ /**
140
+ * The function that directly wraps the script.
141
+ */
142
+ scriptFunction: Function;
143
+ /**
144
+ * The number of lines that the user's script is offset inside the returned function source.
145
+ */
146
+ scriptLineOffset: number;
147
+ /**
148
+ * The number of lines that the user's script is offset from the tranpiler's output.
149
+ */
150
+ transpilerLineOffset: number;
151
+ /**
152
+ * The transpiler result;
153
+ */
154
+ transpilerResult: TranspilerResult;
155
+ /**
156
+ * The name that should be used for the function in stack traces.
157
+ */
158
+ diagnosticFunctionName: string;
159
+ /**
160
+ * The file name that was specified for the script.
161
+ */
162
+ fileName: string;
163
+ /**
164
+ * Whether the function is asynchronous and returns a promise.
165
+ */
166
+ isAsync: boolean;
167
+ /**
168
+ * The function that was constructed by the interpreter.
169
+ */
170
+ constructedFunction: ConstructedFunction;
171
+ /**
172
+ * The context that the function was created with.
173
+ */
174
+ context: any;
175
+ }
176
+ /**
177
+ * The set of options that a script should be compiled with.
178
+ */
179
+ export interface AuxCompileOptions<T> {
180
+ /**
181
+ * The context that should be used.
182
+ */
183
+ context?: T;
184
+ /**
185
+ * The realm that should be used for the script.
186
+ * If provided, then the script will be parsed and executed in the context of this realm and
187
+ * the corresponding engine262 agent.
188
+ */
189
+ interpreter?: Interpreter;
190
+ /**
191
+ * The variables that should be made available to the script.
192
+ */
193
+ variables?: {
194
+ [name: string]: (context?: T) => any;
195
+ };
196
+ /**
197
+ * The constant values that should be made available to the script.
198
+ */
199
+ constants?: {
200
+ [name: string]: any;
201
+ };
202
+ /**
203
+ * The names that each argument should be assigned.
204
+ */
205
+ arguments?: (string | string[])[];
206
+ /**
207
+ * A function that should be called before the compiled function is executed.
208
+ */
209
+ before?: (context?: T) => void;
210
+ /**
211
+ * A function that should be called after the compiled function is executed.
212
+ */
213
+ after?: (context?: T) => void;
214
+ /**
215
+ * A function that should be called to invoke the compiled function.
216
+ */
217
+ invoke?: (func: Function, context?: T) => any;
218
+ /**
219
+ * A function that should be called when an error occurs.
220
+ */
221
+ onError?: (error: any, context?: T, meta?: AuxScriptMetadata) => void;
222
+ /**
223
+ * The name that should be given to the function.
224
+ */
225
+ functionName?: string;
226
+ /**
227
+ * The name that should be used for the function in stack traces.
228
+ */
229
+ diagnosticFunctionName?: string;
230
+ /**
231
+ * The file name that should be used for transformed error stack traces.
232
+ */
233
+ fileName?: string;
234
+ /**
235
+ * Whether to force the output function to be synchronous.
236
+ * This will compile out any async/await code.
237
+ */
238
+ forceSync?: boolean;
239
+ /**
240
+ * The global object that the function should be compiled to reference.
241
+ *
242
+ */
243
+ globalObj?: any;
244
+ }
245
+ /**
246
+ * The set of options that a breakpoint should use.
247
+ */
248
+ export interface AuxCompilerBreakpoint extends Omit<Breakpoint, 'func'> {
249
+ /**
250
+ * The script that the breakpoint should be set for.
251
+ */
252
+ func: AuxCompiledScript;
253
+ /**
254
+ * The interpreter that the breakpoint should be set on.
255
+ */
256
+ interpreter: Interpreter;
257
+ }
258
+ //# sourceMappingURL=AuxCompiler.d.ts.map