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