Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Side by Side Diff: test/mjsunit/regress/regress-4815.js

Issue 1902373002: [builtins] Introduce a proper BUILTIN frame type. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« src/frames.cc ('K') | « src/x64/builtins-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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
5 var thrower = { [Symbol.toPrimitive]: () => FAIL };
6
7 // Tests that a native constructor function is included in the
8 // stack trace.
9 function testTraceNativeConstructor(nativeFunc) {
10 var nativeFuncName = nativeFunc.name;
11 try {
12 new nativeFunc(thrower);
13 assertUnreachable(nativeFuncName);
14 } catch (e) {
15 assertTrue(e.stack.indexOf(nativeFuncName) >= 0, nativeFuncName);
16 }
17 }
18
19 // Tests that a native conversion function is included in the
20 // stack trace.
21 function testTraceNativeConversion(nativeFunc) {
22 var nativeFuncName = nativeFunc.name;
23 try {
24 nativeFunc(thrower);
25 assertUnreachable(nativeFuncName);
26 } catch (e) {
27 assertTrue(e.stack.indexOf(nativeFuncName) >= 0, nativeFuncName);
28 }
29 }
30
31 testTraceNativeConversion(Math.max);
32 testTraceNativeConversion(Math.min);
OLDNEW
« src/frames.cc ('K') | « src/x64/builtins-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698