summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resources/webidl2/test/syntax/idl/constants.widl
blob: 5e28ae9c116a9d9262ea9e59e5b95350a1ce613f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface Util {
  const boolean DEBUG = false;
  const short negative = -1;
  const octet LF = 10;
  const unsigned long BIT_MASK = 0x0000fc00;
  const float AVOGADRO = 6.022e23;
  const unrestricted float sobig = Infinity;
  const unrestricted double minusonedividedbyzero = -Infinity;
  const short notanumber = NaN;
};

exception Error {
  const short ERR_UNKNOWN = 0;
  const short ERR_OUT_OF_MEMORY = 1;

  short errorCode;
};