mirror of
https://github.com/tc39/test262.git
synced 2025-05-04 15:00:42 +02:00
* [javascriptcore-test262-automation] changes from git@github.com:WebKit/webkit.git at sha 949e26452cfa153a7f4afe593da97e2fe9e1b706 on Tue Jul 03 2018 14:35:15 GMT-0400 (Eastern Daylight Time)
74 lines
1.2 KiB
JavaScript
74 lines
1.2 KiB
JavaScript
// This file provides values that may be interesting for testing binary operations.
|
|
|
|
var o1 = {
|
|
valueOf: function() { return 10; }
|
|
};
|
|
|
|
var posInfinity = 1 / 0;
|
|
var negInfinity = -1 / 0;
|
|
|
|
var values = [
|
|
'o1',
|
|
'null',
|
|
'undefined',
|
|
'true',
|
|
'false',
|
|
|
|
'NaN',
|
|
'posInfinity',
|
|
'negInfinity',
|
|
'100.2', // Some random small double value.
|
|
'-100.2',
|
|
'2147483647.5', // Value that will get truncated down to 0x7fffffff (by shift ops).
|
|
'-2147483647.5',
|
|
'54294967296.2923', // Some random large double value.
|
|
'-54294967296.2923',
|
|
|
|
'0',
|
|
'-0',
|
|
'1',
|
|
'-1',
|
|
'5',
|
|
'-5',
|
|
'31',
|
|
'-31',
|
|
'32',
|
|
'-32',
|
|
'0x3fff',
|
|
'-0x3fff',
|
|
'0x7fff',
|
|
'-0x7fff',
|
|
'0x10000',
|
|
'-0x10000',
|
|
'0x7ffffff',
|
|
'-0x7ffffff',
|
|
'0x7fffffff',
|
|
'-0x7fffffff',
|
|
'0x100000000',
|
|
'-0x100000000',
|
|
|
|
'"abc"',
|
|
'"0"',
|
|
'"-0"',
|
|
'"1"',
|
|
'"-1"',
|
|
'"5"',
|
|
'"-5"',
|
|
'"31"',
|
|
'"-31"',
|
|
'"32"',
|
|
'"-32"',
|
|
'"0x3fff"',
|
|
'"-0x3fff"',
|
|
'"0x7fff"',
|
|
'"-0x7fff"',
|
|
'"0x10000"',
|
|
'"-0x10000"',
|
|
'"0x7ffffff"',
|
|
'"-0x7ffffff"',
|
|
'"0x7fffffff"',
|
|
'"-0x7fffffff"',
|
|
'"0x100000000"',
|
|
'"-0x100000000"',
|
|
];
|