|
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:
536 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var $TypeError = require('es-errors/type');
|
|---|
| 4 |
|
|---|
| 5 | var isPropertyDescriptor = require('../helpers/records/property-descriptor');
|
|---|
| 6 | var fromPropertyDescriptor = require('../helpers/fromPropertyDescriptor');
|
|---|
| 7 |
|
|---|
| 8 | // https://262.ecma-international.org/6.0/#sec-frompropertydescriptor
|
|---|
| 9 |
|
|---|
| 10 | module.exports = function FromPropertyDescriptor(Desc) {
|
|---|
| 11 | if (typeof Desc !== 'undefined' && !isPropertyDescriptor(Desc)) {
|
|---|
| 12 | throw new $TypeError('Assertion failed: `Desc` must be a Property Descriptor');
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | return fromPropertyDescriptor(Desc);
|
|---|
| 16 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.