Compare commits
3 Commits
0b6484e0b4
...
4ea14ca1f5
Author | SHA1 | Date | |
---|---|---|---|
4ea14ca1f5 | |||
f6ce261485 | |||
51b347e0d7 |
@ -7,7 +7,7 @@ const nodeResolve = require("@rollup/plugin-node-resolve");
|
||||
const json = require("@rollup/plugin-json");
|
||||
const { resolve } = require("path");
|
||||
|
||||
const shouldMinify = () => false;
|
||||
const shouldMinify = () => true;
|
||||
const shouldEmitSourcemaps = () => true;
|
||||
const shouldPolyfill = () => !!process.env.POLYFILLS;
|
||||
|
||||
@ -99,6 +99,7 @@ const construct = (input, output) => defineConfig({
|
||||
shouldMinify() && terser({
|
||||
sourceMap: shouldEmitSourcemaps(),
|
||||
keep_classnames: true,
|
||||
keep_fnames: true,
|
||||
}),
|
||||
],
|
||||
output: {
|
||||
|
@ -40,7 +40,7 @@ public final class Engine implements EventLoop {
|
||||
try {
|
||||
((Task<Object>)task).notifier.complete(task.runnable.get());
|
||||
}
|
||||
catch (CancellationException e) { throw e; }
|
||||
catch (CancellationException e) { task.notifier.cancel(false); throw e; }
|
||||
catch (RuntimeException e) { task.notifier.completeExceptionally(e); }
|
||||
}
|
||||
catch (InterruptedException | CancellationException e) {
|
||||
|
@ -213,7 +213,9 @@ public final class Frame {
|
||||
catch (StackOverflowError e) { throw STACK_OVERFLOW; }
|
||||
catch (EngineException e) { error = e; }
|
||||
catch (RuntimeException e) {
|
||||
System.out.println(dbg.getMapOrEmpty(function).toLocation(codePtr, true));
|
||||
if (!(e instanceof CancellationException)) {
|
||||
System.out.println(dbg.getMapOrEmpty(function).toLocation(codePtr, true));
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
2
src/main/resources/lib/lib.d.ts
vendored
2
src/main/resources/lib/lib.d.ts
vendored
@ -17,6 +17,8 @@
|
||||
/// <reference path="./globals/weak-map.d.ts"/>
|
||||
|
||||
declare function print(...args: any[]): void;
|
||||
declare function exit(): never;
|
||||
declare function measure(func: () => void): void;
|
||||
|
||||
declare type IArguments = Array<any>;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user