12 lines
210 B
JavaScript
12 lines
210 B
JavaScript
//// [prototypes.ts]
|
|
Object.prototype; // ok
|
|
new Object().prototype; // error
|
|
function f() {}
|
|
f.prototype;
|
|
|
|
//// [prototypes.js]
|
|
Object.prototype;
|
|
new Object().prototype;
|
|
function f() {
|
|
}
|
|
f.prototype;
|