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