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 405e9a9 commit a490018Copy full SHA for a490018
src/engines/v8/v8.zig
@@ -355,6 +355,10 @@ pub const Env = struct {
355
// Currently used for DOM nodes
356
// - value Note: *parser.Node should be converted to dom/node.zig.Union to get the most precise type
357
pub fn findOrAddValue(env: *Env, value: anytype) !v8.Value {
358
+ if (builtin.is_test) {
359
+ // std.testing.refAllDecls(@import("server.zig")); Causes `try ret.lookup(gen.Types);` to throw an error
360
+ return error.TestingNotSupported;
361
+ }
362
comptime var ret: refl.Type = undefined;
363
comptime {
364
@setEvalBranchQuota(150_000); // Needed when this is called with a dom/node.zig.Union
0 commit comments