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

Side by Side Diff: src/js/harmony-spread.js

Issue 1413173003: Move error message makers off js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 2 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/js/harmony-simd.js ('k') | src/js/harmony-typedarray.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 (function(global, utils) { 5 (function(global, utils) {
6 6
7 'use strict'; 7 'use strict';
8 8
9 // ------------------------------------------------------------------- 9 // -------------------------------------------------------------------
10 // Imports 10 // Imports
11 var InternalArray = utils.InternalArray; 11 var InternalArray = utils.InternalArray;
12 var MakeTypeError;
13
14 utils.Import(function(from) {
15 MakeTypeError = from.MakeTypeError;
16 });
12 17
13 // ------------------------------------------------------------------- 18 // -------------------------------------------------------------------
14 19
15 function SpreadArguments() { 20 function SpreadArguments() {
16 var count = %_ArgumentsLength(); 21 var count = %_ArgumentsLength();
17 var args = new InternalArray(); 22 var args = new InternalArray();
18 23
19 for (var i = 0; i < count; ++i) { 24 for (var i = 0; i < count; ++i) {
20 var array = %_Arguments(i); 25 var array = %_Arguments(i);
21 var length = array.length; 26 var length = array.length;
(...skipping 20 matching lines...) Expand all
42 47
43 // ---------------------------------------------------------------------------- 48 // ----------------------------------------------------------------------------
44 // Exports 49 // Exports
45 50
46 %InstallToContext([ 51 %InstallToContext([
47 "spread_arguments", SpreadArguments, 52 "spread_arguments", SpreadArguments,
48 "spread_iterable", SpreadIterable, 53 "spread_iterable", SpreadIterable,
49 ]); 54 ]);
50 55
51 }) 56 })
OLDNEW
« no previous file with comments | « src/js/harmony-simd.js ('k') | src/js/harmony-typedarray.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698