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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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", | 184 "AddBoundMethod", |
185 "ArrayToString", | 185 "ArrayToString", |
| 186 "AsyncFunctionNext", |
| 187 "AsyncFunctionThrow", |
186 "ErrorToString", | 188 "ErrorToString", |
187 "GetIterator", | 189 "GetIterator", |
188 "GetMethod", | 190 "GetMethod", |
189 "IntlParseDate", | 191 "IntlParseDate", |
190 "IntlParseNumber", | 192 "IntlParseNumber", |
191 "IsNaN", | 193 "IsNaN", |
192 "MakeError", | 194 "MakeError", |
193 "MakeRangeError", | 195 "MakeRangeError", |
194 "MakeTypeError", | 196 "MakeTypeError", |
195 "MapEntries", | 197 "MapEntries", |
196 "MapIterator", | 198 "MapIterator", |
197 "MapIteratorNext", | 199 "MapIteratorNext", |
198 "MaxSimple", | 200 "MaxSimple", |
199 "MinSimple", | 201 "MinSimple", |
200 "NumberIsInteger", | 202 "NumberIsInteger", |
201 "PromiseChain", | 203 "PromiseChain", |
202 "PromiseDefer", | 204 "PromiseDefer", |
203 "PromiseAccept", | 205 "PromiseAccept", |
| 206 "PromiseCreateRejected", |
| 207 "PromiseCreateResolved", |
| 208 "PromiseThen", |
204 "RegExpSubclassExecJS", | 209 "RegExpSubclassExecJS", |
205 "RegExpSubclassMatch", | 210 "RegExpSubclassMatch", |
206 "RegExpSubclassReplace", | 211 "RegExpSubclassReplace", |
207 "RegExpSubclassSearch", | 212 "RegExpSubclassSearch", |
208 "RegExpSubclassSplit", | 213 "RegExpSubclassSplit", |
209 "RegExpSubclassTest", | 214 "RegExpSubclassTest", |
210 "SetIterator", | 215 "SetIterator", |
211 "SetIteratorNext", | 216 "SetIteratorNext", |
212 "SetValues", | 217 "SetValues", |
213 "SymbolToString", | 218 "SymbolToString", |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 | 364 |
360 extrasUtils.uncurryThis = function uncurryThis(func) { | 365 extrasUtils.uncurryThis = function uncurryThis(func) { |
361 return function(thisArg, ...args) { | 366 return function(thisArg, ...args) { |
362 return %reflect_apply(func, thisArg, args); | 367 return %reflect_apply(func, thisArg, args); |
363 }; | 368 }; |
364 }; | 369 }; |
365 | 370 |
366 %ToFastProperties(extrasUtils); | 371 %ToFastProperties(extrasUtils); |
367 | 372 |
368 }) | 373 }) |
OLD | NEW |