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 $promiseHasUserDefinedRejectHandler; | 5 var $promiseHasUserDefinedRejectHandler; |
6 var $promiseStatus; | 6 var $promiseStatus; |
7 var $promiseValue; | 7 var $promiseValue; |
8 | 8 |
9 (function(global, utils) { | 9 (function(global, utils) { |
10 | 10 |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 "race", PromiseRace, | 373 "race", PromiseRace, |
374 "resolve", PromiseCast | 374 "resolve", PromiseCast |
375 ]); | 375 ]); |
376 | 376 |
377 utils.InstallFunctions(GlobalPromise.prototype, DONT_ENUM, [ | 377 utils.InstallFunctions(GlobalPromise.prototype, DONT_ENUM, [ |
378 "chain", PromiseChain, | 378 "chain", PromiseChain, |
379 "then", PromiseThen, | 379 "then", PromiseThen, |
380 "catch", PromiseCatch | 380 "catch", PromiseCatch |
381 ]); | 381 ]); |
382 | 382 |
383 $promiseHasUserDefinedRejectHandler = PromiseHasUserDefinedRejectHandler; | |
384 $promiseStatus = promiseStatus; | 383 $promiseStatus = promiseStatus; |
385 $promiseValue = promiseValue; | 384 $promiseValue = promiseValue; |
386 | 385 |
387 utils.ExportToRuntime(function(to) { | 386 utils.ExportToRuntime(function(to) { |
388 to.promiseStatus = promiseStatus; | 387 to.promiseStatus = promiseStatus; |
389 to.promiseValue = promiseValue; | 388 to.promiseValue = promiseValue; |
390 to.PromiseCreate = PromiseCreate; | 389 to.PromiseCreate = PromiseCreate; |
391 to.PromiseResolve = PromiseResolve; | 390 to.PromiseResolve = PromiseResolve; |
392 to.PromiseReject = PromiseReject; | 391 to.PromiseReject = PromiseReject; |
393 to.PromiseChain = PromiseChain; | 392 to.PromiseChain = PromiseChain; |
394 to.PromiseCatch = PromiseCatch; | 393 to.PromiseCatch = PromiseCatch; |
395 to.PromiseThen = PromiseThen; | 394 to.PromiseThen = PromiseThen; |
| 395 to.PromiseHasUserDefinedRejectHandler = PromiseHasUserDefinedRejectHandler; |
396 }); | 396 }); |
397 | 397 |
398 }) | 398 }) |
OLD | NEW |