OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 var $promiseCreate; | 5 var $promiseCreate; |
6 var $promiseResolve; | 6 var $promiseResolve; |
7 var $promiseReject; | 7 var $promiseReject; |
8 var $promiseChain; | 8 var $promiseChain; |
9 var $promiseCatch; | 9 var $promiseCatch; |
10 var $promiseThen; | 10 var $promiseThen; |
11 var $promiseHasUserDefinedRejectHandler; | 11 var $promiseHasUserDefinedRejectHandler; |
12 var $promiseStatus; | 12 var $promiseStatus; |
13 var $promiseValue; | 13 var $promiseValue; |
14 | 14 |
15 (function() { | 15 (function(global, shared, exports) { |
16 | 16 |
17 "use strict"; | 17 "use strict"; |
18 | 18 |
19 %CheckIsBootstrapping(); | 19 %CheckIsBootstrapping(); |
20 | 20 |
21 // ------------------------------------------------------------------- | 21 // ------------------------------------------------------------------- |
22 | 22 |
23 // Status values: 0 = pending, +1 = resolved, -1 = rejected | 23 // Status values: 0 = pending, +1 = resolved, -1 = rejected |
24 var promiseStatus = GLOBAL_PRIVATE("Promise#status"); | 24 var promiseStatus = GLOBAL_PRIVATE("Promise#status"); |
25 var promiseValue = GLOBAL_PRIVATE("Promise#value"); | 25 var promiseValue = GLOBAL_PRIVATE("Promise#value"); |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 $promiseCreate = PromiseCreate; | 384 $promiseCreate = PromiseCreate; |
385 $promiseResolve = PromiseResolve; | 385 $promiseResolve = PromiseResolve; |
386 $promiseReject = PromiseReject; | 386 $promiseReject = PromiseReject; |
387 $promiseChain = PromiseChain; | 387 $promiseChain = PromiseChain; |
388 $promiseCatch = PromiseCatch; | 388 $promiseCatch = PromiseCatch; |
389 $promiseThen = PromiseThen; | 389 $promiseThen = PromiseThen; |
390 $promiseHasUserDefinedRejectHandler = PromiseHasUserDefinedRejectHandler; | 390 $promiseHasUserDefinedRejectHandler = PromiseHasUserDefinedRejectHandler; |
391 $promiseStatus = promiseStatus; | 391 $promiseStatus = promiseStatus; |
392 $promiseValue = promiseValue; | 392 $promiseValue = promiseValue; |
393 | 393 |
394 })(); | 394 }) |
OLD | NEW |