main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
432 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict';
|
---|
| 2 | var isObject = require('../internals/is-object');
|
---|
| 3 | var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
---|
| 4 |
|
---|
| 5 | // `InstallErrorCause` abstract operation
|
---|
| 6 | // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
---|
| 7 | module.exports = function (O, options) {
|
---|
| 8 | if (isObject(options) && 'cause' in options) {
|
---|
| 9 | createNonEnumerableProperty(O, 'cause', options.cause);
|
---|
| 10 | }
|
---|
| 11 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.