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

Side by Side Diff: src/proxy.js

Issue 1293493003: Do not export natives to runtime via js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/promise.js ('k') | src/runtime.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 var $proxyDerivedGetTrap;
6 var $proxyDerivedHasTrap;
7 var $proxyDerivedSetTrap;
8 var $proxyEnumerate;
9
10 (function(global, utils) { 5 (function(global, utils) {
11 6
12 "use strict"; 7 "use strict";
13 8
14 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
15 10
16 // ---------------------------------------------------------------------------- 11 // ----------------------------------------------------------------------------
17 // Imports 12 // Imports
18 13
19 var GlobalFunction = global.Function; 14 var GlobalFunction = global.Function;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 187
193 //Set up non-enumerable properties of the Proxy object. 188 //Set up non-enumerable properties of the Proxy object.
194 utils.InstallFunctions(Proxy, DONT_ENUM, [ 189 utils.InstallFunctions(Proxy, DONT_ENUM, [
195 "create", ProxyCreate, 190 "create", ProxyCreate,
196 "createFunction", ProxyCreateFunction 191 "createFunction", ProxyCreateFunction
197 ]) 192 ])
198 193
199 // ------------------------------------------------------------------- 194 // -------------------------------------------------------------------
200 // Exports 195 // Exports
201 196
202 $proxyDerivedGetTrap = DerivedGetTrap;
203 $proxyDerivedHasTrap = DerivedHasTrap;
204 $proxyDerivedSetTrap = DerivedSetTrap;
205 $proxyEnumerate = ProxyEnumerate;
206
207 utils.Export(function(to) { 197 utils.Export(function(to) {
208 to.ProxyDelegateCallAndConstruct = DelegateCallAndConstruct; 198 to.ProxyDelegateCallAndConstruct = DelegateCallAndConstruct;
209 to.ProxyDerivedHasOwnTrap = DerivedHasOwnTrap; 199 to.ProxyDerivedHasOwnTrap = DerivedHasOwnTrap;
210 to.ProxyDerivedKeysTrap = DerivedKeysTrap; 200 to.ProxyDerivedKeysTrap = DerivedKeysTrap;
211 }); 201 });
212 202
203 utils.ExportToRuntime(function(to) {
204 to.ProxyDerivedGetTrap = DerivedGetTrap;
205 to.ProxyDerivedHasTrap = DerivedHasTrap;
206 to.ProxyDerivedSetTrap = DerivedSetTrap;
207 to.ProxyEnumerate = ProxyEnumerate;
208 });
209
213 }) 210 })
OLDNEW
« no previous file with comments | « src/promise.js ('k') | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698