We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Have tried this several ways. Finally I took an example directly from MDN on this link here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures
The text below is in a file called index.js (which i call from the cmd line with "devtools index.js --break")
var mo = new MyObject("me","hello");
mo.getName(); // mo should work but function getName is undefined in the debugger
function MyObject(name, message) { this.name = name.toString(); this.message = message.toString(); } (function() { this.getName = function() { return this.name; }; this.getMessage = function() { return this.message; }; }).call(MyObject.prototype);
Chrome debugger loads fine and i can step through the program but my prototype chain does not connect to the correct prototype.
This also fails with
Function MyObject () {
} MyObject.prototype = { getName : function(){ } ... }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Have tried this several ways. Finally I took an example directly from MDN on this link here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures
The text below is in a file called index.js (which i call from the cmd line with "devtools index.js --break")
var mo = new MyObject("me","hello");
mo.getName(); // mo should work but function getName is undefined in the debugger
function MyObject(name, message) {
this.name = name.toString();
this.message = message.toString();
}
(function() {
this.getName = function() {
return this.name;
};
this.getMessage = function() {
return this.message;
};
}).call(MyObject.prototype);
Chrome debugger loads fine and i can step through the program but my prototype chain does not connect to the correct prototype.
This also fails with
Function MyObject () {
}
MyObject.prototype = {
getName : function(){ }
...
}
The text was updated successfully, but these errors were encountered: