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

Side by Side Diff: src/js/proxy.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/promise.js ('k') | src/js/regexp.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
11 // ---------------------------------------------------------------------------- 11 // ----------------------------------------------------------------------------
12 // Imports 12 // Imports
13 13
14 var GlobalFunction = global.Function; 14 var GlobalFunction = global.Function;
15 var GlobalObject = global.Object; 15 var GlobalObject = global.Object;
16 16 var MakeTypeError;
17 var ToNameArray; 17 var ToNameArray;
18 18
19 utils.Import(function(from) { 19 utils.Import(function(from) {
20 MakeTypeError = from.MakeTypeError;
20 ToNameArray = from.ToNameArray; 21 ToNameArray = from.ToNameArray;
21 }); 22 });
22 23
23 //---------------------------------------------------------------------------- 24 //----------------------------------------------------------------------------
24 25
25 function ProxyCreate(handler, proto) { 26 function ProxyCreate(handler, proto) {
26 if (!IS_SPEC_OBJECT(handler)) 27 if (!IS_SPEC_OBJECT(handler))
27 throw MakeTypeError(kProxyHandlerNonObject, "create") 28 throw MakeTypeError(kProxyHandlerNonObject, "create")
28 if (IS_UNDEFINED(proto)) 29 if (IS_UNDEFINED(proto))
29 proto = null 30 proto = null
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 }); 202 });
202 203
203 %InstallToContext([ 204 %InstallToContext([
204 "derived_get_trap", DerivedGetTrap, 205 "derived_get_trap", DerivedGetTrap,
205 "derived_has_trap", DerivedHasTrap, 206 "derived_has_trap", DerivedHasTrap,
206 "derived_set_trap", DerivedSetTrap, 207 "derived_set_trap", DerivedSetTrap,
207 "proxy_enumerate", ProxyEnumerate, 208 "proxy_enumerate", ProxyEnumerate,
208 ]); 209 ]);
209 210
210 }) 211 })
OLDNEW
« no previous file with comments | « src/js/promise.js ('k') | src/js/regexp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698