| OLD | NEW |
| 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 Loading... |
| 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 }) |
| OLD | NEW |