-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cannot capture UpdateExpression like ++foo #32
Comments
Hi, thank you for reporting. Unfortunately, it's a limitation of power-assert. I cannot support Let me explain. Given 'use strict';
function capt (val) {
return val;
}
var counter = {
count: 0
};
console.log(++counter.count); // => 1
console.log(capt(++capt(capt(counter).count))); // => ReferenceError results in
Since test tool should not change behavior of SUT (System Under Test), I gave up supporting Sorry for inconvenience. I'll write about this limitation to FAQ section in REAME. Thanks! |
I understand, thanks! |
expected:
actual:
other:
The text was updated successfully, but these errors were encountered: