| 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 "use strict"; | 5 "use strict"; |
| 6 | 6 |
| 7 // This file relies on the fact that the following declaration has been made | 7 // This file relies on the fact that the following declaration has been made |
| 8 // in runtime.js: | 8 // in runtime.js: |
| 9 // var $Object = global.Object | 9 // var $Object = global.Object |
| 10 // var $WeakMap = global.WeakMap | |
| 11 | 10 |
| 12 // For bootstrapper. | 11 // For bootstrapper. |
| 13 | 12 |
| 14 var IsPromise; | 13 var IsPromise; |
| 15 var PromiseCreate; | 14 var PromiseCreate; |
| 16 var PromiseResolve; | 15 var PromiseResolve; |
| 17 var PromiseReject; | 16 var PromiseReject; |
| 18 var PromiseChain; | 17 var PromiseChain; |
| 19 var PromiseCatch; | 18 var PromiseCatch; |
| 20 var PromiseThen; | 19 var PromiseThen; |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 "race", PromiseRace, | 383 "race", PromiseRace, |
| 385 "resolve", PromiseCast | 384 "resolve", PromiseCast |
| 386 ]); | 385 ]); |
| 387 InstallFunctions($Promise.prototype, DONT_ENUM, [ | 386 InstallFunctions($Promise.prototype, DONT_ENUM, [ |
| 388 "chain", PromiseChain, | 387 "chain", PromiseChain, |
| 389 "then", PromiseThen, | 388 "then", PromiseThen, |
| 390 "catch", PromiseCatch | 389 "catch", PromiseCatch |
| 391 ]); | 390 ]); |
| 392 | 391 |
| 393 })(); | 392 })(); |
| OLD | NEW |