summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/compiler/test-run-inlining.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/compiler/test-run-inlining.cc')
-rw-r--r--deps/v8/test/cctest/compiler/test-run-inlining.cc30
1 files changed, 2 insertions, 28 deletions
diff --git a/deps/v8/test/cctest/compiler/test-run-inlining.cc b/deps/v8/test/cctest/compiler/test-run-inlining.cc
index f332d7499b..234060c7f7 100644
--- a/deps/v8/test/cctest/compiler/test-run-inlining.cc
+++ b/deps/v8/test/cctest/compiler/test-run-inlining.cc
@@ -268,7 +268,8 @@ TEST(InlineTwice) {
"(function () {"
" var x = 42;"
" function bar(s) { AssertInlineCount(2); return x + s; };"
- " return (function (s,t) { return bar(s) + bar(t); });"
+ " function foo(s, t) { return bar(s) + bar(t); };"
+ " return foo;"
"})();",
kInlineFlags);
@@ -542,33 +543,6 @@ TEST(InlineNestedBuiltin) {
}
-TEST(StrongModeArity) {
- FLAG_strong_mode = true;
- FunctionTester T(
- "(function () {"
- " function foo(x, y) { 'use strong'; return x; }"
- " function bar(x, y) { return foo(x); }"
- " return bar;"
- "})();",
- kInlineFlags);
- T.CheckThrows(T.undefined(), T.undefined());
-}
-
-
-TEST(StrongModeArityOuter) {
- FLAG_strong_mode = true;
- FunctionTester T(
- "(function () {"
- " 'use strong';"
- " function foo(x, y) { return x; }"
- " function bar(x, y) { return foo(x); }"
- " return bar;"
- "})();",
- kInlineFlags);
- T.CheckThrows(T.undefined(), T.undefined());
-}
-
-
TEST(InlineSelfRecursive) {
FunctionTester T(
"(function () {"