Extract doPowerAssert function to eliminate duplication.
Extract doPowerAssert function to eliminate duplication.

power-assert-js/empower,power-assert-js/empower,jamestalmage/empower-assert,twada/empower-core,twada/empower-core,jamestalmage/empower-assert,twada/power-assert-runtime