Skip to content

test: correct the assertion for the ES6 object properties

test: fix assertion in a vm test

Prototypes are not strict equal when they are from different contexts. Therefore, assert.strictEqual() fails for objects that are created in different contexts, e.g. in vm.runInContext().

Instead of expecting the prototypes to be equal, only check the properties of the objects for equality.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Merge request reports

Loading