You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a = function () {
this.m2 = (new Function("with(this){m(c)}"))
};
a.prototype.c = "hello";
a.prototype.m = function () {
console.log("c:", this.c)
};
b = new a();
b.m2()
chrome result : "c: hello"
goja result : "c: undefined"
The text was updated successfully, but these errors were encountered:
Thanks for reporting. It should now be fixed, but I would not use with unless it's some legacy code you cannot or do not want to touch. Use strict mode whenever possible.
Thanks for reporting. It should now be fixed, but I would not use with unless it's some legacy code you cannot or do not want to touch. Use strict mode whenever possible.
Thanks, this error comes from an extension library and I can't modify it
I found this code does not work when I use it
chrome result : "c: hello"
goja result : "c: undefined"
The text was updated successfully, but these errors were encountered: