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 // TODO(jochen): Remove this after the setting is turned on globally. |
| 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
| 7 |
5 #include <stdlib.h> | 8 #include <stdlib.h> |
6 #include <sstream> | 9 #include <sstream> |
7 #include <utility> | 10 #include <utility> |
8 | 11 |
9 #include "src/api.h" | 12 #include "src/api.h" |
10 #include "src/objects.h" | 13 #include "src/objects.h" |
11 #include "src/v8.h" | 14 #include "src/v8.h" |
12 | 15 |
13 #include "test/cctest/cctest.h" | 16 #include "test/cctest/cctest.h" |
14 | 17 |
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1089 TestSubclassBuiltin("A1", JS_PROMISE_TYPE, "Promise", | 1092 TestSubclassBuiltin("A1", JS_PROMISE_TYPE, "Promise", |
1090 "function(resolve, reject) { resolve('ok'); }", | 1093 "function(resolve, reject) { resolve('ok'); }", |
1091 first_field); | 1094 first_field); |
1092 } | 1095 } |
1093 | 1096 |
1094 | 1097 |
1095 TEST(SubclassPromiseBuiltinNoInlineNew) { | 1098 TEST(SubclassPromiseBuiltinNoInlineNew) { |
1096 FLAG_inline_new = false; | 1099 FLAG_inline_new = false; |
1097 TestSubclassPromiseBuiltin(); | 1100 TestSubclassPromiseBuiltin(); |
1098 } | 1101 } |
OLD | NEW |