Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/promise.js

Issue 1094563002: Wrap map and set implementation in functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/parser.cc ('k') | src/templates.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 })();
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/templates.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698