We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c335a97 commit fb78316Copy full SHA for fb78316
src/262_worker.mjs
@@ -4,7 +4,10 @@ import {
4
ManagedRealm,
5
createTest262Intrinsics,
6
evalQ,
7
- boostTest262Harness
+ boostTest262Harness,
8
+ Get,
9
+ CreateDataPropertyOrThrow,
10
+ Value,
11
} from '../lib/engine262.mjs';
12
import { Inspector, createConsole } from '../lib/inspector.mjs';
13
import { Test262HarnessFiles } from './harness.mjs';
@@ -56,6 +59,10 @@ function recreateAgent(features, signal) {
56
59
);
57
60
realm.evaluateScript(script);
58
61
}
62
+ realm.scope(() => {
63
+ const consoleTrace = X(Get(X(Get(realm.GlobalObject, Value('console'))), Value('trace')));
64
+ X(CreateDataPropertyOrThrow(realm.GlobalObject, Value('$DONE'), consoleTrace));
65
+ });
66
});
67
boostTest262Harness(realm);
68
0 commit comments