remove unused import, add debug statement

This commit is contained in:
Karl Seguin
2025-05-08 21:14:33 +08:00
parent 3993f9c2bb
commit 8d3a378761
2 changed files with 2 additions and 1 deletions

View File

@@ -165,7 +165,6 @@ fn common(b: *std.Build, opts: *std.Build.Step.Options, step: *std.Build.Step.Co
);
mod.link_libcpp = true;
mod.addObjectFile(mod.owner.path(lib_path));
mod.addIncludePath(b.path("src/runtime/v8"));
switch (target.result.os.tag) {
.macos => {

View File

@@ -97,6 +97,8 @@ test "JS: object types" {
// v8 has 5 default "own" properties
const own_base = "5";
std.debug.print("MASKING: {d} {d}\n", .{@import("v8").PropertyHandlerFlags.OnlyInterceptStrings, @import("v8").PropertyHandlerFlags.NonMasking});
try runner.testCases(&.{
.{ "Object.getOwnPropertyNames(MyObject).length;", own_base },
.{ "let myObj = new MyObject(true);", "undefined" },