| Index: test/mjsunit/regress/regress-5173.js
|
| diff --git a/test/mjsunit/regress/regress-4815.js b/test/mjsunit/regress/regress-5173.js
|
| similarity index 65%
|
| copy from test/mjsunit/regress/regress-4815.js
|
| copy to test/mjsunit/regress/regress-5173.js
|
| index f6adb0169cd2a56da8fcb793e635252ce52b5a55..250a687761160cbc06eba39a5e1be3842e4b8ffd 100644
|
| --- a/test/mjsunit/regress/regress-4815.js
|
| +++ b/test/mjsunit/regress/regress-5173.js
|
| @@ -19,13 +19,6 @@ function testTraceNativeConversion(nativeFunc) {
|
| testTraceNativeConversion(Math.max);
|
| testTraceNativeConversion(Math.min);
|
|
|
| -// C++ builtins.
|
| -testTraceNativeConversion(Math.acos);
|
| -testTraceNativeConversion(Math.asin);
|
| -testTraceNativeConversion(Math.fround);
|
| -testTraceNativeConversion(Math.imul);
|
| -
|
| -
|
| function testBuiltinInStackTrace(script, expectedString) {
|
| try {
|
| eval(script);
|
| @@ -35,33 +28,25 @@ function testBuiltinInStackTrace(script, expectedString) {
|
| }
|
| }
|
|
|
| -// Use the full name ('String.getDate') in order to avoid false pass
|
| -// results when the method name is mentioned in the error message itself.
|
| -// This occurs, e.g., for Date.prototype.getYear, which uses a different code
|
| -// path and never hits the Generate_DatePrototype_GetField builtin.
|
| testBuiltinInStackTrace("Date.prototype.getDate.call('')", "at String.getDate");
|
| testBuiltinInStackTrace("Date.prototype.getUTCDate.call('')",
|
| "at String.getUTCDate");
|
| testBuiltinInStackTrace("Date.prototype.getTime.call('')", "at String.getTime");
|
|
|
| -// C++ builtins.
|
| -testBuiltinInStackTrace("Boolean.prototype.toString.call(thrower);",
|
| - "at Object.toString");
|
| -
|
| -// Constructor builtins.
|
| -testBuiltinInStackTrace("new Date(thrower);", "at new Date");
|
| +// TODO(jgruber): These use a more generic expected string until detection of
|
| +// assembly builtin constructors is fixed.
|
| +testBuiltinInStackTrace("Number(thrower);", "Number");
|
| +testBuiltinInStackTrace("new Number(thrower);", "Number");
|
| +testBuiltinInStackTrace("String(thrower);", "String");
|
| +testBuiltinInStackTrace("new String(thrower);", "String");
|
|
|
| // Ensure we correctly pick up the receiver's string tag.
|
| -testBuiltinInStackTrace("Math.max(thrower);", "at Math.max");
|
| -testBuiltinInStackTrace("Math.min(thrower);", "at Math.min");
|
| testBuiltinInStackTrace("Math.acos(thrower);", "at Math.acos");
|
| testBuiltinInStackTrace("Math.asin(thrower);", "at Math.asin");
|
| testBuiltinInStackTrace("Math.fround(thrower);", "at Math.fround");
|
| testBuiltinInStackTrace("Math.imul(thrower);", "at Math.imul");
|
|
|
| // As above, but function passed as an argument and then called.
|
| -testBuiltinInStackTrace("((f, x) => f(x))(Math.max, thrower);", "at max");
|
| -testBuiltinInStackTrace("((f, x) => f(x))(Math.min, thrower);", "at min");
|
| testBuiltinInStackTrace("((f, x) => f(x))(Math.acos, thrower);", "at acos");
|
| testBuiltinInStackTrace("((f, x) => f(x))(Math.asin, thrower);", "at asin");
|
| testBuiltinInStackTrace("((f, x) => f(x))(Math.fround, thrower);", "at fround");
|
|
|