blob: 52556ac87fd09fced113cde77dbdf0c2d051eda3 [file] [log] [blame]
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001// Copyright 2014 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Emily Bernierd0a1eb72015-03-24 16:35:39 -04005#include "test/cctest/compiler/function-tester.h"
6
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00007namespace v8 {
8namespace internal {
9namespace compiler {
Emily Bernierd0a1eb72015-03-24 16:35:39 -040010
11TEST(TerminateAtMethodEntry) {
12 FunctionTester T("(function(a,b) { return 23; })");
13
14 T.CheckCall(T.Val(23));
15 T.isolate->stack_guard()->RequestTerminateExecution();
16 T.CheckThrows(T.undefined(), T.undefined());
17}
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000018
19} // namespace compiler
20} // namespace internal
21} // namespace v8