13 lines
210 B
JavaScript
13 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;
|