|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
298 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var test = {
|
|---|
| 4 | __proto__: null,
|
|---|
| 5 | foo: {}
|
|---|
| 6 | };
|
|---|
| 7 |
|
|---|
| 8 | // @ts-expect-error: TS errors on an inherited property for some reason
|
|---|
| 9 | var result = { __proto__: test }.foo === test.foo
|
|---|
| 10 | && !(test instanceof Object);
|
|---|
| 11 |
|
|---|
| 12 | /** @type {import('.')} */
|
|---|
| 13 | module.exports = function hasProto() {
|
|---|
| 14 | return result;
|
|---|
| 15 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.