• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2require('../common');
3
4// This test ensures Math functions don't fail with an "illegal instruction"
5// error on ARM devices (primarily on the Raspberry Pi 1)
6// See https://github.com/nodejs/node/issues/1376
7// and https://code.google.com/p/v8/issues/detail?id=4019
8
9Math.abs(-0.5);
10Math.acos(-0.5);
11Math.acosh(-0.5);
12Math.asin(-0.5);
13Math.asinh(-0.5);
14Math.atan(-0.5);
15Math.atanh(-0.5);
16Math.cbrt(-0.5);
17Math.ceil(-0.5);
18Math.cos(-0.5);
19Math.cosh(-0.5);
20Math.exp(-0.5);
21Math.expm1(-0.5);
22Math.floor(-0.5);
23Math.fround(-0.5);
24Math.log(-0.5);
25Math.log10(-0.5);
26Math.log1p(-0.5);
27Math.log2(-0.5);
28Math.round(-0.5);
29Math.sign(-0.5);
30Math.sin(-0.5);
31Math.sinh(-0.5);
32Math.sqrt(-0.5);
33Math.tan(-0.5);
34Math.tanh(-0.5);
35Math.trunc(-0.5);
36