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 9// Iterate over all Math functions 10Object.getOwnPropertyNames(Math).forEach((functionName) => { 11 if (!/[A-Z]/.test(functionName)) { 12 // The function names don't have capital letters. 13 Math[functionName](-0.5); 14 } 15}); 16