OLD | NEW |
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, extrasUtils) { | 5 (function(global, utils, extrasUtils) { |
6 | 6 |
7 "use strict"; | 7 "use strict"; |
8 | 8 |
9 %CheckIsBootstrapping(); | 9 %CheckIsBootstrapping(); |
10 | 10 |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { | 178 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { |
179 imports(exports_container); | 179 imports(exports_container); |
180 } | 180 } |
181 | 181 |
182 // Whitelist of exports from normal natives to experimental natives and debug. | 182 // Whitelist of exports from normal natives to experimental natives and debug. |
183 var expose_list = [ | 183 var expose_list = [ |
184 "AddBoundMethod", | 184 "AddBoundMethod", |
185 "ArrayToString", | 185 "ArrayToString", |
186 "AsyncFunctionNext", | 186 "AsyncFunctionNext", |
187 "AsyncFunctionThrow", | 187 "AsyncFunctionThrow", |
| 188 "formatDateToParts", |
188 "GetIterator", | 189 "GetIterator", |
189 "GetMethod", | 190 "GetMethod", |
190 "GlobalPromise", | 191 "GlobalPromise", |
191 "IntlParseDate", | 192 "IntlParseDate", |
192 "IntlParseNumber", | 193 "IntlParseNumber", |
193 "IsNaN", | 194 "IsNaN", |
194 "MapEntries", | 195 "MapEntries", |
195 "MapIterator", | 196 "MapIterator", |
196 "MapIteratorNext", | 197 "MapIteratorNext", |
197 "MaxSimple", | 198 "MaxSimple", |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 | 354 |
354 extrasUtils.uncurryThis = function uncurryThis(func) { | 355 extrasUtils.uncurryThis = function uncurryThis(func) { |
355 return function(thisArg, ...args) { | 356 return function(thisArg, ...args) { |
356 return %reflect_apply(func, thisArg, args); | 357 return %reflect_apply(func, thisArg, args); |
357 }; | 358 }; |
358 }; | 359 }; |
359 | 360 |
360 %ToFastProperties(extrasUtils); | 361 %ToFastProperties(extrasUtils); |
361 | 362 |
362 }) | 363 }) |
OLD | NEW |