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

Methods on the object prototype are not suggested in the debug repl #11185

Closed
alexdima opened this issue Aug 30, 2016 · 0 comments
Closed

Methods on the object prototype are not suggested in the debug repl #11185

alexdima opened this issue Aug 30, 2016 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Milestone

Comments

@alexdima
Copy link
Member

alexdima commented Aug 30, 2016

Testing #10997

function Person(name, age) {
    this.name = name;
    this.age = age;
}
Person.prototype.greet = function(whom) {
    console.log('Hello ' + whom.name + ', my name is ' + this.name); // <---- BREAKPOINT HERE
}

Student.prototype = Object.create(Person.prototype);
function Student(name, age, school) {
    Person.call(this, name, age);
    this.school = school;
}
Student.prototype.getSchool = function() {
    return this.school;
}

var a = new Person('John', 20);
var b = new Student('Charlie', 20, 'UNI');
a.greet(b);

I would expect whom. to suggest greet() and getSchool() besides age, name and school.

@isidorn isidorn added the debug Debug viewlet, configurations, breakpoints, adapter issues label Aug 30, 2016
@isidorn isidorn removed their assignment Aug 30, 2016
@weinand weinand added the bug Issue identified by VS Code Team member as probable bug label Aug 30, 2016
@weinand weinand added this to the August 2016 milestone Aug 30, 2016
@weinand weinand added the verification-needed Verification of issue is requested label Aug 31, 2016
@roblourens roblourens added the verified Verification succeeded label Aug 31, 2016
@weinand weinand removed the verification-needed Verification of issue is requested label Sep 2, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants