Skip to content

Commit b899f88

Browse files
committed
Faking the constructor. Yay JS inheritance!
1 parent ebe9113 commit b899f88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test.js

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ test('objects', function (t) {
6666
};
6767
var G = function G() {};
6868
G.prototype = new F();
69+
G.prototype.constructor = G;
6970
var H = function H() {};
7071
H.prototype = G.prototype;
7172
var I = function I() {};

0 commit comments

Comments
 (0)