Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BranchOnly]: J$cntr is not defined #50

Open
magnus-madsen opened this issue Jun 5, 2015 · 2 comments
Open

[BranchOnly]: J$cntr is not defined #50

magnus-madsen opened this issue Jun 5, 2015 · 2 comments

Comments

@magnus-madsen
Copy link

If I try to instrument a program with the following:

sandbox.Config.requiresInstrumentation = function (id, funId, sid, funName) {
    if (funName === 'J$.T') {
        return true;
    }

    if (funName === 'J$.S' || funName === 'J$.Fe' || funName === 'J$.Fr' ||
        funName === 'J$.M' || funName === 'J$.F' ||
        funName === 'J$.C1' || funName === 'J$.C2' || funName === 'J$.C') {

        return Instrument.indexOf(funId) !== - 1;
    }

    return false;
};

where Instrument is a stable array of identifiers, I get

ReferenceError: J$cntr is not defined

@magnus-madsen
Copy link
Author

function f() {
g();
}

function g() {
var o = {};

}

f();

@magnus-madsen
Copy link
Author

The following simplification seems to cause the same crash:

sandbox.Config.requiresInstrumentation = function (id, funId, sid, funName) {
if (funName === 'J$.T') {
return true;
}
return false;
}

ksen007 added a commit that referenced this issue Jun 5, 2015
…changed. It no longer gets invocationCount as an argument.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant