UNPKG

517 BJavaScriptView Raw
1/** @license MIT License (c) copyright 2010-2014 original author or authors */
2/** @author Brian Cavalier */
3/** @author John Hann */
4
5(function(define) { 'use strict';
6define(function(require) {
7
8 var inspect = require('../state').inspect;
9
10 return function inspection(Promise) {
11
12 Promise.prototype.inspect = function() {
13 return inspect(Promise._handler(this));
14 };
15
16 return Promise;
17 };
18
19});
20}(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(require); }));