| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 174 |
| 175 function PostNatives(utils) { | 175 function PostNatives(utils) { |
| 176 %CheckIsBootstrapping(); | 176 %CheckIsBootstrapping(); |
| 177 | 177 |
| 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", | |
| 185 "ArrayToString", | 184 "ArrayToString", |
| 186 "AsyncFunctionNext", | 185 "AsyncFunctionNext", |
| 187 "AsyncFunctionThrow", | 186 "AsyncFunctionThrow", |
| 188 "FormatDateToParts", | 187 "FormatDateToParts", |
| 189 "GetIterator", | 188 "GetIterator", |
| 190 "GetMethod", | 189 "GetMethod", |
| 191 "GlobalPromise", | 190 "GlobalPromise", |
| 192 "IntlParseDate", | |
| 193 "IntlParseNumber", | |
| 194 "IsPromise", | 191 "IsPromise", |
| 195 "MapEntries", | 192 "MapEntries", |
| 196 "MapIterator", | 193 "MapIterator", |
| 197 "MapIteratorNext", | 194 "MapIteratorNext", |
| 198 "MaxSimple", | 195 "MaxSimple", |
| 199 "MinSimple", | 196 "MinSimple", |
| 200 "NewPromiseCapability", | 197 "NewPromiseCapability", |
| 201 "PerformPromiseThen", | 198 "PerformPromiseThen", |
| 202 "PromiseThen", | 199 "PromiseThen", |
| 203 "PromiseCreate", | 200 "PromiseCreate", |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 | 353 |
| 357 extrasUtils.uncurryThis = function uncurryThis(func) { | 354 extrasUtils.uncurryThis = function uncurryThis(func) { |
| 358 return function(thisArg, ...args) { | 355 return function(thisArg, ...args) { |
| 359 return %reflect_apply(func, thisArg, args); | 356 return %reflect_apply(func, thisArg, args); |
| 360 }; | 357 }; |
| 361 }; | 358 }; |
| 362 | 359 |
| 363 %ToFastProperties(extrasUtils); | 360 %ToFastProperties(extrasUtils); |
| 364 | 361 |
| 365 }) | 362 }) |
| OLD | NEW |